struct SharedPipeData {
state: Mutex<PipeState>,
read_waker: Waker,
write_waker: Waker,
}Expand description
Shared pipe data including both state and wakers Wakers are kept outside the Mutex to avoid deadlock when calling wait()
Fields§
§state: Mutex<PipeState>Main pipe state (protected by mutex)
read_waker: WakerWaker for tasks waiting to read (outside mutex to avoid deadlock)
write_waker: WakerWaker for tasks waiting to write (outside mutex to avoid deadlock)