Skip to main content

xila_condition_wait

Function xila_condition_wait 

Source
pub unsafe extern "C" fn xila_condition_wait(
    condition: *mut Condition,
    mutex: *mut Mutex,
    clock: u32,
    deadline: *const i64,
) -> Status
Expand description

Wait for notification or an absolute clock deadline, reacquiring the mutex before returning. The caller must own the mutex with depth exactly one.

ยงSafety

The mutex must remain live at a fixed address until the call returns. The condition must remain live at a fixed address until this waiter is notified or times out. A non-null deadline must be aligned and readable.