[−][src]Crate yaar_lock
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
: EnablesOsThreadEvent
and exposes flavors of types which use it. This assumes the platform and provides interfaces to interact with it, similar to libstd.sync
: Enables thesync
module which exposes the synchronization primitives that use OS thread blocking.future
: Enables thefuture
module which exposes synchronization primitives that are future-aware.
Modules
future | Synchronization primitives based on futures. |
sync | Synchronization primitives based on OS thread blocking |
Structs
OsThreadEvent | feature="os" The default ThreadEvent which uses the platform's blocking primitives. |
Traits
ThreadEvent | Abstraction which provides a method of blocking and unblocking threads through the interface of a manual reset event. |