clasp
clasp copied to clipboard
Semaphores
The mp package should include an implementation of semaphores:
- they're useful.
- The second version of the bordeaux threads API has them, so we can expose them to that.
- C++20 includes a
counting_semaphorewe can probably use, or alternately POSIX has semaphores, so implementation shouldn't be difficult.