>>Since This->started was not set yet[...]
>This doesn't make sense, there's a critical section.
You are right, this one patch is only needed for my lock-less code,
which I'll not submit for now. Good catch.
(The minimal dueTime would benefit current code nevertheless, since
critical section cont
writes:
> What happened every so often, even on a single-core machine(!), is
> that CreateTimerQueue(dueTime=0=immediate) would see the timer thread
> created and the callback invoked before the function returns. Since
> This->started was not set yet, our callback would return immediately,
> in