#[repr(C)]pub struct TlsRegion {
pub gen: u64,
pub layout: Layout,
pub alloc_base: NonNull<u8>,
pub thread_pointer: NonNull<u8>,
pub dtv: NonNull<usize>,
pub num_dtv_entries: usize,
pub module_top: NonNull<u8>,
}
Fields§
§gen: u64
§layout: Layout
§alloc_base: NonNull<u8>
§thread_pointer: NonNull<u8>
§dtv: NonNull<usize>
§num_dtv_entries: usize
§module_top: NonNull<u8>
Implementations§
source§impl TlsRegion
impl TlsRegion
sourcepub unsafe fn get_thread_control_block<T>(&self) -> *mut Tcb<T>
pub unsafe fn get_thread_control_block<T>(&self) -> *mut Tcb<T>
Get a pointer to the thread control block for this TLS region.
Safety
The TCB must actually contain runtime data of type T, and be initialized.
source§impl TlsRegion
impl TlsRegion
pub fn alloc_base(&self) -> *mut u8
pub fn alloc_layout(&self) -> Layout
pub fn get_thread_pointer_value(&self) -> usize
Trait Implementations§
Auto Trait Implementations§
impl !Crossing for TlsRegion
impl !ObjSafe for TlsRegion
impl RefUnwindSafe for TlsRegion
impl !Send for TlsRegion
impl !Sync for TlsRegion
impl Unpin for TlsRegion
impl UnwindSafe for TlsRegion
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more