[threading linux] Fix events with closed handles
Linux: Remove copy and destroy call in make_unique invokation which closes handles on all events. Testing: Add Wait test for Events set and unset.
This commit is contained in:
committed by
Rick Gibbed
parent
4280a6451d
commit
f9d708265f
@@ -356,7 +356,7 @@ std::unique_ptr<Event> Event::CreateAutoResetEvent(bool initial_state) {
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
return std::make_unique<PosixEvent>(PosixEvent(fd));
|
||||
return std::make_unique<PosixEvent>(fd);
|
||||
}
|
||||
|
||||
// TODO(dougvj)
|
||||
|
||||
Reference in New Issue
Block a user