pub unsafe extern "C" fn CondVar_WaitTimeout(
    cv: *mut CondVar,
    lock: *mut LightLock,
    timeout_ns: s64
) -> c_int
Expand description

Waits on a condition variable with a timeout.

§Arguments

  • cv - Pointer to the condition variable.
  • lock - Pointer to the lock to atomically unlock/relock during the wait.
  • timeout_ns - Timeout in nanoseconds.

§Returns

Zero on success, non-zero on failure.