https://github.com/doumanash/semka
Cross-platform Semaphore
https://github.com/doumanash/semka
Last synced: 3 months ago
JSON representation
Cross-platform Semaphore
- Host: GitHub
- URL: https://github.com/doumanash/semka
- Owner: DoumanAsh
- License: bsl-1.0
- Created: 2020-07-22T12:00:49.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2023-09-30T12:49:11.000Z (over 1 year ago)
- Last Synced: 2025-02-28T20:25:48.895Z (3 months ago)
- Language: Rust
- Size: 48.8 KB
- Stars: 6
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 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 casesPOSIX implementation relies on [libc](https://github.com/rust-lang/libc)
This includes all `unix` targets and `fuchsia`
### Mac
Uses `mach` API.