Expand description
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
This includes all unix
targets and fuchsia
Mac
Uses mach
API.
Structs
- POSIX implementation of Semaphore