Ownership tracker that records the id of the owning thread.
Declared in <folly/SharedMutex.h>
class ThreadIdOwnershipTracker;
Used when the policy requests thread-id tracking; stores the OS thread id while the lock is held in upgrade or exclusive mode.
| Name | Description |
|---|---|
beginThreadOwnership | Records the current thread as the owner. |
endThreadOwnership | Clears the recorded owning thread. |
maybeBeginThreadOwnership | Records the current thread as the owner when ownership is taken. |