Re: mmdevapi: Prevent race condition upon Start.

2012-12-18 Thread Joerg-Cyril.Hoehle
>>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

Re: mmdevapi: Prevent race condition upon Start.

2012-12-18 Thread Alexandre Julliard
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