yaar_lock aims to provide
#![no_std] tools for synchronizing resource access across threads and futures.
yaar_lock provides only the central building block traits and components have to be enabled explicitly.
OsThreadEventand exposes flavors of types which use it. This assumes the platform and provides interfaces to interact with it, similar to libstd.
sync: Enables the
syncmodule which exposes the synchronization primitives that use OS thread blocking.
future: Enables the
futuremodule which exposes synchronization primitives that are future-aware.
Synchronization primitives based on futures.
Synchronization primitives based on OS thread blocking
The default ThreadEvent which uses the platform's blocking primitives.
Abstraction which provides a method of blocking and unblocking threads through the interface of a manual reset event.