Binary semaphore using futexes. Useful for saving energy when waiting for new data in lock-free data structures. The fast path can still be lock-free, only when the consumer has blocked will you incur the cost of as syscall.
This project was created by Erik Rigtorp <erik@rigtorp.se>.