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++
- Host: GitHub
- URL: https://github.com/raphaelsc/byte-range-lock-cpp
- Owner: raphaelsc
- License: gpl-2.0
- Created: 2016-02-17T08:29:15.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2016-02-20T19:48:55.000Z (over 10 years ago)
- Last Synced: 2025-03-25T07:51:13.672Z (about 1 year ago)
- Language: C++
- Homepage:
- Size: 81.1 KB
- Stars: 10
- Watchers: 5
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: COPYING
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
```