![]() |
VectorNav C++ Library
|
Represents a cross-platform event. More...
#include <event.h>
Public Types | |
enum | WaitResult { WAIT_SIGNALED, WAIT_TIMEDOUT } |
Available wait results. More... | |
Public Member Functions | |
Event () | |
Creates a new event. | |
void | wait () |
Waits for a signal on this event. More... | |
WaitResult | waitUs (uint32_t timeoutUs) |
Waits for a signal on this event for the specified amount of time. More... | |
WaitResult | waitMs (uint32_t timeoutMs) |
Waits for a signal on this event for the specified amount of time. More... | |
void | signal () |
Signals the event. | |
Represents a cross-platform event.
void vn::xplat::Event::wait | ( | ) |
Waits for a signal on this event.
This method will wait indefinitely for the event.
WaitResult vn::xplat::Event::waitMs | ( | uint32_t | timeoutMs | ) |
Waits for a signal on this event for the specified amount of time.
[in] | timeoutMs | The amount of time to wait in milliseconds. |
WaitResult vn::xplat::Event::waitUs | ( | uint32_t | timeoutUs | ) |
Waits for a signal on this event for the specified amount of time.
[in] | timeoutUs | The amount of time to wait in microseconds. |