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

https://github.com/raphaelsc/byte-range-lock-cpp

Byte-range lock implementation in modern C++
https://github.com/raphaelsc/byte-range-lock-cpp

Last synced: about 1 year ago
JSON representation

Byte-range lock implementation in modern C++

Awesome Lists containing this project

README

          

# byte-range-lock-cpp

Why was this project created? I was looking for a mechanism to lock specific regions of a shared resource such as a file, but I didn't find anything that was fit my needs. Please, take a look at the file **range_lock.hh** to understand how this mechanism works.

###Build requirements
* C++ >= 11
* C++ >= 14 is required for shared lock

###Compiling test
```
$ g++ --std=c++11 range_lock_test.cc -lpthread
```
or
```
$ g++ --std=c++14 range_lock_test.cc -lpthread
```