4 stable releases

2.0.7 Sep 30, 2023
2.0.6 Feb 12, 2022
2.0.4 Jun 8, 2021
2.0.3 May 27, 2021
1.0.1 Jul 24, 2020

#216 in Concurrency

41 downloads per month

BSL-1.0 license

20KB
386 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

~69KB