[][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: Enables OsThreadEvent and exposes flavors of types which use it. This assumes the platform and provides interfaces to interact with it, similar to libstd.
  • sync: Enables the sync module which exposes the synchronization primitives that use OS thread blocking.
  • future: Enables the future 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

OsThreadEventfeature="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.