pipe_role

Function pipe_role 

Source
pub unsafe extern "C" fn pipe_role(pipe: *mut PipeSide) -> PipeRole
Expand description

Gets the role of a pipe side.

The roles (Alice and Bob) are equal, as both can send and receive data. This status might be helpful in determining the role of a thread w.r.t. another thread.

§Arguments

  • [in] - pipe Pipe side to query

§Returns

Role of provided pipe side