See Public API for a list of names and headers that are part of the public HPX API.
- #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.
inline event() noexcept#
Construct a new event semaphore.
inline bool occurred() noexcept#
Check if the event has occurred.
inline void wait()#
Wait for the event to occur.
inline void set()#
Release all threads waiting on this semaphore.
inline void reset() noexcept#
Reset the event.
- inline event() noexcept#
- class event#
- namespace local
- namespace lcos