rt: Change the win32 event object to an auto-reset event

The way I read the docs, having this be a manual reset event means
that after the first time it's signalled it stays that way until reset,
and we never, ever reset it.
This commit is contained in:
Brian Anderson 2012-02-02 18:30:04 -08:00
parent 3b4dd26ff1
commit 1ea184285e

View file

@ -18,7 +18,7 @@
lock_and_signal::lock_and_signal()
: _holding_thread(INVALID_THREAD)
{
_event = CreateEvent(NULL, TRUE, FALSE, NULL);
_event = CreateEvent(NULL, FALSE, FALSE, NULL);
InitializeCriticalSection(&_cs);
}