Struct umbra_lang::ThreadHandle [−][src]
pub struct ThreadHandle {
pub vars: HashableMap<String, RefTVal>,
pub body: Callable,
pub ginput: Arc<Mutex<(Option<Sender<TVal>>, Option<Receiver<TVal>>)>>,
pub goutput: Arc<Mutex<(Option<Sender<TVal>>, Option<Receiver<TVal>>)>>,
pub handle: Arc<Mutex<Option<JoinHandle<FnReturn>>>>,
}
Expand description
The context for a running Thread
. Can be joined from multiple threads.
Fields
vars: HashableMap<String, RefTVal>
body: Callable
ginput: Arc<Mutex<(Option<Sender<TVal>>, Option<Receiver<TVal>>)>>
goutput: Arc<Mutex<(Option<Sender<TVal>>, Option<Receiver<TVal>>)>>
handle: Arc<Mutex<Option<JoinHandle<FnReturn>>>>
Implementations
Trait Implementations
This method returns an ordering between self
and other
values if one exists. Read more
This method tests less than (for self
and other
) and is used by the <
operator. Read more
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
Auto Trait Implementations
impl RefUnwindSafe for ThreadHandle
impl Send for ThreadHandle
impl Sync for ThreadHandle
impl Unpin for ThreadHandle
impl UnwindSafe for ThreadHandle
Blanket Implementations
Mutably borrows from an owned value. Read more