folly::shared_mutex_detail

Implementation details for SharedMutex; not part of the public API.

Types

NameDescription
NopOwnershipTracker Ownership tracker that records nothing.
PolicySuppressTSAN Policy that suppresses ThreadSanitizer rwlock annotations.
PolicyTracked Policy that enables tracking the id of the thread holding the lock.
ThreadIdOwnershipTracker Ownership tracker that records the id of the owning thread.

Functions

NameDescription
annotationGuard Returns a guard that gives permission for the current thread to annotate, and adjust the annotation bits in, the SharedMutex at ptr.
getCurrentThreadInvoluntaryContextSwitchCount Returns the number of involuntary context switches for the current thread.
getMaxDeferredReaders Returns the current maximum number of deferred readers.
getMaxDeferredReadersSlow Computes and caches the current maximum number of deferred readers.
throwDeadlockWouldOccur [noreturn]Throws a system error indicating a deadlock would occur.
throwOperationNotPermitted [noreturn]Throws a system error indicating the operation is not permitted.

Variables

NameDescription
kMaxDeferredReadersAllocated Upper bound on the number of deferred reader slots that may be allocated.