Skip to content

Commit 85c73b3

Browse files
committed
apply Long's pplx::event_impl fix - expand lock's scope for event.set()
1 parent aba17bd commit 85c73b3

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
@@ -92,10 +92,8 @@ namespace platform
9292

9393
void set()
9494
{
95-
{
96-
std::lock_guard<std::mutex> lock(_lock);
97-
_signaled = true;
98-
}
95+
std::lock_guard<std::mutex> lock(_lock);
96+
_signaled = true;
9997
_condition.notify_all();
10098
}
10199

0 commit comments

Comments
 (0)