pub struct GutexGroup {
owning: AtomicUsize,
active: UnsafeCell<usize>,
}
Expand description
Group of Gutex
.
Fields§
§owning: AtomicUsize
§active: UnsafeCell<usize>
Implementations§
Source§impl GutexGroup
impl GutexGroup
Sourcepub fn new() -> Arc<Self>
pub fn new() -> Arc<Self>
§Context safety
This function does not require a CPU context on stage 1 heap.
Sourcepub fn spawn_default<T: Default>(self: Arc<Self>) -> Gutex<T>
pub fn spawn_default<T: Default>(self: Arc<Self>) -> Gutex<T>
Sourcepub fn spawn<T>(self: Arc<Self>, value: T) -> Gutex<T>
pub fn spawn<T>(self: Arc<Self>, value: T) -> Gutex<T>
§Context safety
This function does not require a CPU context.
fn lock(&self) -> GroupGuard<'_>
fn wait(&self)
Trait Implementations§
impl Send for GutexGroup
impl Sync for GutexGroup
Auto Trait Implementations§
impl !Freeze for GutexGroup
impl !RefUnwindSafe for GutexGroup
impl Unpin for GutexGroup
impl UnwindSafe for GutexGroup
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