Trait concurrency_traits::ThreadParker[][src]

pub trait ThreadParker {
    type ThreadId;
    fn park(self);
fn unpark(self, thread: Self::ThreadId); }

Functions to allow parking functionality for threads.

Associated Types

type ThreadId[src]

The type of a thread portable id. Analog for std::thread::Thread.

Loading content...

Required methods

fn park(self)[src]

Parks the current thread. Analog for std::thread::park.

fn unpark(self, thread: Self::ThreadId)[src]

Unparks a thread. Analog for std::thread::Thread::unpark.

Loading content...

Implementors

impl ThreadParker for &StdThreadFunctions[src]

type ThreadId = Thread

Loading content...