#sync #semaphore

no-std semka

Semaphore implementation

2 stable releases

2.0.4 Jun 8, 2021
2.0.3 May 27, 2021
1.0.1 Jul 24, 2020

#157 in Concurrency

33 downloads per month

BSL-1.0 license

17KB
354 lines

semka

Rust Crates.io Documentation

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.


lib.rs:

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.

Dependencies

~14KB