|
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 |
[Prev in Thread] | Current Thread | [Next in Thread] |