pub struct SynchronizationObjects {
mutexes: IndexVec<MutexId, Mutex>,
rwlocks: IndexVec<RwLockId, RwLock>,
condvars: IndexVec<CondvarId, Condvar>,
pub(super) init_onces: IndexVec<InitOnceId, InitOnce>,
}
Expand description
The state of all synchronization objects.
Fields§
§mutexes: IndexVec<MutexId, Mutex>
§rwlocks: IndexVec<RwLockId, RwLock>
§condvars: IndexVec<CondvarId, Condvar>
§init_onces: IndexVec<InitOnceId, InitOnce>
Implementations§
Source§impl SynchronizationObjects
impl SynchronizationObjects
pub fn mutex_create(&mut self) -> MutexId
pub fn rwlock_create(&mut self) -> RwLockId
pub fn condvar_create(&mut self) -> CondvarId
pub fn init_once_create(&mut self) -> InitOnceId
Trait Implementations§
Source§impl Debug for SynchronizationObjects
impl Debug for SynchronizationObjects
Source§impl Default for SynchronizationObjects
impl Default for SynchronizationObjects
Source§fn default() -> SynchronizationObjects
fn default() -> SynchronizationObjects
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for SynchronizationObjects
impl RefUnwindSafe for SynchronizationObjects
impl Send for SynchronizationObjects
impl Sync for SynchronizationObjects
impl Unpin for SynchronizationObjects
impl UnwindSafe for SynchronizationObjects
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
Layout§
Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...)
attributes. Please see the Rust Reference's “Type Layout” chapter for details on type layout guarantees.
Size: 96 bytes