Locks the lock and returns the data stored in the unused bits of the lock. This is useful when you want to use the unused bits of the lock to store data, in which case reading and locking should be done in one atomic operation.
Synopsis
Declared in <folly/MicroLock.h>
uint8_t
lockAndLoad() noexcept;
Return Value
The user data stored in the data bits at the time of locking.
Created with MrDocs