Policy that enables tracking the id of the thread holding the lock.

Synopsis

Declared in <folly/SharedMutex.h>

struct PolicyTracked
    : SharedMutexPolicyDefault

Base Classes

Name

Description

SharedMutexPolicyDefault

Default tuning and feature policy for SharedMutexImpl.

Static Data Members

Name

Description

max_soft_yield_count

Number of soft yields to perform before blocking on a futex.

max_spin_cycles

Maximum number of CPU cycles to spin before yielding.

skip_annotate_rwlock

Whether to skip ThreadSanitizer rwlock annotations.

track_thread_id

Enables tracking the id of the thread holding the lock.

Created with MrDocs