Sema is an implementation of the Rust standard library Semaphore
with POSIX
semaphores.
One major benefit of this implementation is that Semaphore::release()
is
async-safe and may be called from within a signal handler, as defined in
POSIX.1-2001.
Add this to your Cargo.toml
:
```toml [dependencies]
sema = "*" ```
and this to your crate root:
rust
extern crate sema;