Expand description
yaar_lock aims to provide #![no_std] tools for synchronizing resource access across threads and futures.
§Features
By default, yaar_lock provides only the central building block traits and components have to be enabled explicitly.
os: EnablesOsThreadEventand exposes flavors of types which use it. This assumes the platform and provides interfaces to interact with it, similar to libstd.sync: Enables thesyncmodule which exposes the synchronization primitives that use OS thread blocking.future: Enables thefuturemodule which exposes synchronization primitives that are future-aware.
Modules§
- future
- Synchronization primitives based on futures.
- sync
- Synchronization primitives based on OS thread blocking
Structs§
- OsThread
Event os - The default ThreadEvent which uses the platform’s blocking primitives.
Traits§
- Thread
Event - Abstraction which provides a method of blocking and unblocking threads through the interface of a manual reset event.