cli_sleep

Function cli_sleep 

Source
pub unsafe extern "C" fn cli_sleep(
    side: *mut PipeSide,
    duration_in_ms: u32,
) -> bool
Expand description

Pause for a specified duration or until Ctrl+C is pressed or the session is terminated.

§Arguments

  • [in] - side Pointer to pipe side given to the command thread.
  • [in] - duration_in_ms Duration of sleep in milliseconds.

§Returns

true if the sleep completed without interruption. false if interrupted.

This function also assumes that the pipe is installed as the thread’s stdio. This function will consume 0 or 1 bytes from the pipe.