Wait for an event to occur.
If the event is already signaled, this operation will return without blocking.
The event must be a valid PCREvent. The event must not be destroyed while it is being waited upon.
- Parameters
-
evt | The event for which to wait. This may not be NULL. |
time | Maximum time to wait, in milliseconds, or PCRTIMEOUT_FOREVER to wait indefinitely. |
- Returns
- Returns a status code:
- PCRSTATUS_OK if the event was signaled before the timeout expired.
- PCRSTATUS_TIMEOUT if the event was not signaled prior to the timeout.