Skip to content

Commit 040c323

Browse files
author
Artur Laksberg
committed
Fix race condition in the event implementation
1 parent d268e0f commit 040c323

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

Release/include/pplxlinux.h

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -83,10 +83,8 @@ namespace details
8383

8484
void set()
8585
{
86-
{
87-
std::lock_guard<std::mutex> lock(_lock);
88-
_signaled = true;
89-
}
86+
std::lock_guard<std::mutex> lock(_lock);
87+
_signaled = true;
9088
_condition.notify_all();
9189
}
9290

0 commit comments

Comments
 (0)