cds
2.3.2
|
Monitor that injects the lock into each node More...
#include <cds/sync/injecting_monitor.h>
Data Structures | |
struct | node_injection |
Node injection. More... | |
Public Types | |
typedef Lock | lock_type |
Lock type. | |
template<typename Node > | |
using | scoped_lock = monitor_scoped_lock< injecting_monitor, Node > |
Scoped lock. | |
Public Member Functions | |
template<typename Node > | |
void | lock (Node const &p) const |
Makes exclusive access to node p . | |
template<typename Node > | |
void | unlock (Node const &p) const |
Unlocks the node p . | |
Monitor that injects the lock into each node
This simple monitor injects the lock object of type Lock
into each node. The monitor is designed for user-space locking primitives like spin-lock.
Template arguments:
std::mutex
or cds::sync::spin