Quote Originally Posted by Paul McKenzie View Post
What's this critical section for?
but the l_State variable is assigned in the window message pump thread, so unless you can prove that such assignments and comparisons are atomic synchronization is needed here.