A lock‐holder base which holds shared locks for shared mutex types or exclusive locks otherwise.

Synopsis

Declared in <folly/synchronization/Lock.h>

template<typename Mutex>
class hybrid_lock_base;

Member Functions

Name

Description

swap

Swaps the held lock state with another lock holder.

Using Declarations

Friends

Name

Description

folly::swap

Swaps the held lock state of two lock holders.

Derived Classes

Name

Description

hybrid_lock

A lock‐holder type which holds shared locks for shared mutex types or exclusive locks otherwise.

Created with MrDocs