Skip to content

Commit 1ea1842

Browse files
committed
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.
1 parent 3b4dd26 commit 1ea1842

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/rt/sync/lock_and_signal.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
lock_and_signal::lock_and_signal()
1919
: _holding_thread(INVALID_THREAD)
2020
{
21-
_event = CreateEvent(NULL, TRUE, FALSE, NULL);
21+
_event = CreateEvent(NULL, FALSE, FALSE, NULL);
2222
InitializeCriticalSection(&_cs);
2323
}
2424

0 commit comments

Comments
 (0)