threadshare: Fix shutdown race condition
We might've already handled the shutdown unparking while doing the previous turn(s), so we have to check the atomic bool afterwards again and before waiting (potentially) forever.
Fixes #75 (closed)
We might've already handled the shutdown unparking while doing the previous turn(s), so we have to check the atomic bool afterwards again and before waiting (potentially) forever.
Fixes #75 (closed)