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

#212 in Concurrency

Download history 6/week @ 2024-02-15 120/week @ 2024-02-22 35/week @ 2024-02-29 36/week @ 2024-03-07 9/week @ 2024-03-14

202 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

~67KB