#include <Threading/Event.h>
template<EventType Type>
Event class
Lightweight event implementation.
Constructors, destructors, conversion operators
Public functions
- auto operator=(const Event&) -> Event& deleted
- auto operator=(Event&&) -> Event& deleted
- auto ResetEvent() -> bool noexcept
- Sets the state of the event to nonsignaled, causing threads to block, returns the previous state of the event.
- void SetEvent() noexcept
- Sets the state of the event to signaled, allowing one or more waiting threads to proceed.
- auto IsSignaled() const -> bool noexcept
- Checks if the event is currently signaled, this will not reset the event (unlike Win32 auto-reset event objects)
-
auto Wait(std::
uint32_t timeoutMilliseconds) -> bool noexcept - Blocks the current thread until the event receives a signal.
- auto Wait() -> bool noexcept
Function documentation
template<EventType Type>
bool Death:: Threading:: Event<Type>:: Wait() noexcept
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.