Skip to main content

Module sync

Module sync 

Source
Expand description

Sync utilities common to netstack3.

Modules§

lock_impl
Concrete synchronization primitive implementations for tests.

Structs§

DebugReferences
Provides a Debug implementation that contains information helpful for debugging dangling references.
DynDebugReferences
Like DebugReferences, but type-erases the contained type.
MapRcNotifier
An implementation of Notifier that wraps another Notifier and applies a function on notified objects.
Mutex
A mutex assuming lock poisoning will never occur.
OnceLock
A synchronization primitive which can nominally be written to only once.
PrimaryRc
A primary reference.
ResourceToken
An opaque token associated with a resource.
ResourceTokenValue
Holder of a value for ResourceToken. Vends ResourceToken instances with the same value and the lifetime bound to the lifetime of the holder.
RwLock
A reader-writer lock assuming lock poisoning will never occur.
StrongRc
A strongly-held reference.
WeakRc
A weakly-held reference.

Traits§

BindingsSyncTypes
Synchronization primitive types provided by bindings.
Once
A synchronization primitive which can be used to run a one-time initialization.
RcNotifier
Provides delegated notification of all strong references of a Primary being dropped.

Type Aliases§

LockGuard
Lock guard for access to a Mutex.
RwLockReadGuard
Lock guard for read access to a RwLock.
RwLockWriteGuard
Lock guard for write access to a RwLock.