[−][src]Struct sunrise_libuser::threads::ThreadContext
Structure holding the thread local context of a thread. Allocated at thread creation by the creator of the thread.
Fields
entry_point: fn(_: usize)
Pointer to the function this thread should execute after all its set-up in thread_trampoline is done.
arg: usize
The argument to call it with.
stack: Option<StackContext>
The stack used by this thread.
None
for the main thread's stack, since it was not allocated by us
and will never be freed as it'll be the last thread alive.
Some
for every other thread.
tls_elf: Once<TlsElf>
The thread local storage of this thread.
This is where #[thread_local]
statics live.
thread_handle: Once<ThreadHandle>
The ThreadHandle of this thread.
The thread needs to be able to access its own ThreadHandle at anytime to be able to use mutexes.
Trait Implementations
Auto Trait Implementations
impl !RefUnwindSafe for ThreadContext
impl Send for ThreadContext
impl Sync for ThreadContext
impl Unpin for ThreadContext
impl UnwindSafe for ThreadContext
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> SizedIPCBuffer for T
[src]
fn size(&Self) -> usize
[src]
fn is_cool(usize, usize) -> bool
[src]
unsafe fn from_raw_parts<'a>(usize, usize) -> &'a T
[src]
unsafe fn from_raw_parts_mut<'a>(usize, usize) -> &'a mut T
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,