An open API service indexing awesome lists of open source software.

https://github.com/rigtorp/binarysemaphore

Binary semaphore using futexes.
https://github.com/rigtorp/binarysemaphore

Last synced: about 2 months ago
JSON representation

Binary semaphore using futexes.

Awesome Lists containing this project

README

        

# BinarySemaphore.h

[![License](https://img.shields.io/badge/license-MIT-blue.svg)](https://raw.githubusercontent.com/rigtorp/TokenBucket/master/LICENSE)

[Binary semaphore](https://en.wikipedia.org/wiki/Semaphore_(programming))
using [futexes](https://en.wikipedia.org/wiki/Futex). 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.

## About

This project was created by [Erik Rigtorp](http://rigtorp.se)
<[[email protected]](mailto:[email protected])>.