folly::PackedSyncPtr::setExtra

Stores extra data in the unused bytes of the pointer.

Synopsis

Declared in <folly/PackedSyncPtr.h>

void
setExtra(uint16_t extra);

Description

The high bit must not be set, since it is reserved for the mutex, and the lock must be held when calling this.

Parameters

NameDescription
extraThe 15-bit extra value to store.