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
ScopedSemaphoreon the stack. - create_
semaphore - Convenience macro for creating a
Semaphoreon the stack.
Structs§
- NoPermits
- Error produced by
Semaphore::try_acquirewhen no permits were available. - Permit
- A resource object representing one permit acquired from a
ScopedSemaphore. - Scoped
Semaphore - A counting semaphore that uses resource objects to manage permits,
eliminating the need to explicitly call
releasein certain kinds of use cases. - Semaphore
- A counting semaphore.