Compile `folly` from source on Arch Linux

You first need to install all the dependencies as documented on the folly github page, fmt googletest, boost gflag glog These are pretty straightforward, as you can build them just fine by following the github page for each project respectively. However I ran into some issues when building folly from…

Linear scalable read-write lock

The basic concept of a read-write lock is simple. It allows multiple readers to access the resource simultaneously, but at most one thread can have exclusive ownership of the lock (a.k.a write lock). It's supposed to be an optimization, comparing to simple mutex (e.g. std::mutex). As…