Encode user data into the data bits of a lock word, preserving lock bits.
Synopsis
Declared in <folly/MicroLock.h>
constexpr
static
uint8_t
encodeDataToWord(
uint8_t word,
uint8_t value) noexcept;
Return Value
The updated lock word.
Parameters
Name |
Description |
word |
The current lock word whose lock bits are preserved. |
value |
The user data to store in the data bits. |
Created with MrDocs