]> git.corax.cc Git - toolbox/commit
include/sem: Add POSIX-like semaphore implementation
authorMatthias Kruk <m@m10k.eu>
Sat, 20 Mar 2021 23:55:16 +0000 (08:55 +0900)
committerMatthias Kruk <m@m10k.eu>
Sun, 21 Mar 2021 00:37:15 +0000 (09:37 +0900)
commit6400b90ade0dad53333074fc8383f15cbd9c7d72
treedb19562e279e1f0c4d577a356be35dbd9b46e4a3
parent47ed8b7b170e2fcbb8e9326bdb527bf80e5097e2
include/sem: Add POSIX-like semaphore implementation

In certain situations, mutex are not enough for synchronization. This
commit adds a POSIX-like semaphore implementation that can be used to
implement things like queues or singleton scripts.
include/sem.sh [new file with mode: 0644]