Allow using unused MicroLock slots as data
Summary: `folly::MicroLock` is actually 4 locks, each using 2 bits. In cases we don't need all the slots, we can use the other bits to store some data which is loaded/stored atomically with locking and unlocking. There is no change in existing `MicroLock` usage behavior. Reviewed By: davidtgoldblatt Differential Revision: D25842148 fbshipit-source-id: 5f6ff705c35529d279629ccc256a9c210907ea5c
Showing
Please register or sign in to comment