A lock-holder type which holds shared locks for shared mutex types or exclusive locks otherwise.
Declared in <folly/synchronization/Lock.h>
template<typename Mutex>
class hybrid_lock
: public hybrid_lock_base<Mutex>
| Name | Description |
|---|---|
hybrid_lock_base<Mutex> | A lock-holder base which holds shared locks for shared mutex types or exclusive locks otherwise. |
| Name | Description |
|---|---|
swap | Swaps the held lock state with another lock holder. |
| Name |
|---|
Unnamed using |
| Name | Description |
|---|---|
hybrid_lock<Mutex> | Deduces the mutex type of a hybrid_lock from its constructor arguments. |
| Name | Description |
|---|---|
swap | Swaps the held lock state of two lock holders. |