pub unsafe extern "C" fn aws_condition_variable_wait_for_pred(
    condition_variable: *mut aws_condition_variable,
    mutex: *mut aws_mutex,
    time_to_wait: i64,
    pred: aws_condition_predicate_fn,
    pred_ctx: *mut c_void
) -> c_int
Expand description

Waits the calling thread on a notification from another thread. Times out after time_to_wait. time_to_wait is in nanoseconds. If predicate returns false, the wait is reentered, otherwise control returns to the caller.