Hi all,

I have a question regarding ucommon::Conditional::wait() implementation for 
_MSTHREADS_.

Should not ResetEvent() be called before lock is released here?


    result = ((result == WAIT_OBJECT_0 + BROADCAST) && (waiting == 0));
    LeaveCriticalSection(&mlock);
    if(result)
        ResetEvent(&events[BROADCAST]);



Thank you.

Andy
_______________________________________________
Bug-commoncpp mailing list
Bug-commoncpp@gnu.org
https://lists.gnu.org/mailman/listinfo/bug-commoncpp

Reply via email to