[][src]Trait drone_core::thr::Thread

pub trait Thread: Sized + Sync + 'static {
    type Local: ThreadLocal;
    pub fn first() -> *const Self;
pub fn fib_chain(&self) -> &Chain;
pub unsafe fn local(&self) -> &Self::Local; }

Generic thread.

Associated Types

type Local: ThreadLocal[src]

The thread-local storage.

Loading content...

Required methods

pub fn first() -> *const Self[src]

Returns a pointer to the first thread in the thread array.

pub fn fib_chain(&self) -> &Chain[src]

Returns a reference to the fiber chain.

pub unsafe fn local(&self) -> &Self::Local[src]

Returns a reference to the thread-local storage of the thread.

local function should be used instead of this method.

Safety

This method is unsafe because Thread is Sync while Thread::Local is not.

Loading content...

Implementors

Loading content...