Skip to main contentModule freeze
Source use std::cell::UnsafeCell; ๐ use std::hint; ๐ use std::marker::PhantomData; ๐ use std::ops::Deref; ๐ use std::ops::DerefMut; ๐ use std::ptr::NonNull; ๐ use std::sync::atomic::AtomicBool; ๐ use std::sync::atomic::Ordering; ๐ use crate::sync::DynSend; ๐ use crate::sync::DynSync; ๐ use crate::sync::ReadGuard; ๐ use crate::sync::RwLock; ๐ use crate::sync::WriteGuard; ๐
- FreezeLock
- A type which allows mutation using a lock until
the value is frozen and can be accessed lock-free.
- FreezeReadGuard
- A guard holding shared access to a
FreezeLock which is in a locked state or frozen. - FreezeWriteGuard
- A guard holding mutable access to a
FreezeLock which is in a locked state or frozen.