Operators |
timed_wait_condition — Bounded wait on the signal of a condition synchronization object.
timed_wait_condition( : : ConditionHandle, MutexHandle, Timeout : )
timed_wait_condition atomically unlocks MutexHandle and waits on ConditionHandle, as wait_condition does, but it also bounds the duration of the wait. If ConditionHandle has not been signaled within the amount of time specified by Timeout in micro seconds, the mutex MutexHandle is re-acquired and timed_wait_condition returns the error H_ERR_TIMEOUT.
Using negative values for Timeout means an infinite waiting time.
Condition synchronization object.
Mutex synchronization object.
Timeout in micro seconds.
timed_wait_condition returns 2 (H_MSG_TRUE) if all parameters are correct. If necessary, an exception is raised. If a timeout occurs, the error H_ERR_TIMEOUT is raised.
signal_condition, clear_condition
Foundation
Operators |