cds  2.3.2
cds::sync::injecting_monitor< Lock > Class Template Reference

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.
 

Detailed Description

template<typename Lock>
class cds::sync::injecting_monitor< Lock >

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:


The documentation for this class was generated from the following file:

cds 2.3.2 Developed by Maxim Khizhinsky aka khizmax and other contributors 2007 - 2017
Autogenerated Sun Dec 31 2017 12:10:53 by Doxygen 1.8.13