Skip to main content Skip to main content
Pigweed's logo Pigweed
code_xml
  1. Home
  2. Reference
  3. Rust
  4. pw_kernel
  5. syscall_defs
  6. object_wait

object_wait

Function object_wait 

Source
pub unsafe extern "C" fn object_wait(
    object_handle: u32,
    signal_mask: Signals,
    deadline: u64,
) -> WaitReturn
Expand description

Wait on a single object

Waits for one of the signals in signal_mask to be pending on object_handle.

§Returns

  • WaitReturn.status >= 0: Returns object specific metadata
  • Error::InvalidArgument: object_handle is not a valid object or the object is a wait group and there are no members in the wait group.
  • Error::DeadlineExceeded: The handler side did not respond before deadline was exceeded.