Crate lilos_semaphore

Source
Expand description

A counting semaphore for use with lilos.

See the docs on Semaphore for more details.

Macros§

create_scoped_semaphore
Convenience macro for creating a ScopedSemaphore on the stack.
create_semaphore
Convenience macro for creating a Semaphore on the stack.

Structs§

NoPermits
Error produced by Semaphore::try_acquire when no permits were available.
Permit
A resource object representing one permit acquired from a ScopedSemaphore.
ScopedSemaphore
A counting semaphore that uses resource objects to manage permits, eliminating the need to explicitly call release in certain kinds of use cases.
Semaphore
A counting semaphore.