hpx/synchronization/event.hpp¶
See Public API for a list of names and headers that are part of the public HPX API.
-
namespace
hpx
-
namespace
lcos
-
namespace
local
-
class
event
¶ - #include <event.hpp>
Event semaphores can be used for synchronizing multiple threads that need to wait for an event to occur. When the event occurs, all threads waiting for the event are woken up.
Public Functions
-
event
()¶ Construct a new event semaphore.
-
bool
occurred
()¶ Check if the event has occurred.
-
void
wait
()¶ Wait for the event to occur.
-
void
set
()¶ Release all threads waiting on this semaphore.
-
void
reset
()¶ Reset the event.
Private Functions
-
void
wait_locked
(std::unique_lock<mutex_type> &l)¶
-
void
set_locked
(std::unique_lock<mutex_type> l)¶
-
-
class
-
namespace
-
namespace