Portable (w/ c++20) version of lightweightsemaphore
Author: aachrisgCreated Apr 12, 2026Updated Apr 12, 2026
I created a small wrapper around std::counting_semaphore to use instead of the OS - dependent variants. The main advantage (besides os-independence) is that it greatly speeds up creation of blocking queues in windows by avoiding the creation calls for OS synchronization.
https://github.com/aachrisg/concurrentqueue/commit/3c273f5bcee628db3f564399aa2713ebcfa81489
Source: cameron314/concurrentqueue