ariel_os::thread::thread_flags

Function set

pub fn set(thread_id: ThreadId, mask: u16)
Available on crate feature threading only.
Expand description

Sets flags for a thread.

If the thread was blocked on these flags it’s unblocked and added to the runqueue.

§Panics

Panics if thread_id is >= THREAD_COUNT.