Here's a little puzzle
inspired by an actual bug:
Can the assertion at the start of WorkerThread
Naturally, the answer is Yes,
otherwise it wouldn't be a very interesting article.
The assertion can fire if the worker thread starts running
before the call the CreateThread returns.
In that case, the caller hasn't yet ...