# semka

[](https://crates.io/crates/semka)
[](https://docs.rs/crate/semka/)
Semaphore primitive for Rust
## Platform implementation
#### Windows
Uses winapi `CreateSemaphoreW`.
#### POSIX
All POSIX-compliant systems uses `sem_init`
But it must be noted that awaiting can be interrupted by the signal, although implementation
tries its best to handle these cases
POSIX implementation relies on [libc](https://github.com/rust-lang/libc)
This includes all `unix` targets and `fuchsia`
### Mac
Uses `mach` API.