bug-commoncpp
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug in Conditional???


From: andypanov
Subject: bug in Conditional???
Date: Tue, 9 Sep 2014 10:57:45 +0000

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




reply via email to

[Prev in Thread] Current Thread [Next in Thread]