Click
Loading...
Searching...
No Matches
Public Member Functions | Protected Attributes | List of all members
fast_rcu< T > Class Template Reference

#include <multithread.hh>

Public Member Functions

 fast_rcu (T v)
 
void initialize (T v)
 
const T & read_begin (int &)
 
void read_end (const int &)
 
T read ()
 
T & write_begin (int &rcu_current_local)
 
void write_commit (int rcu_current_local)
 

Protected Attributes

volatile int _rcu_current
 
per_thread< volatile int > _epochs
 
AT _storage [2]
 
volatile int _write_epoch
 
Spinlock _write_lock
 

Detailed Description

template<typename T>
class fast_rcu< T >

Fast RCU that avoids heavy locked CAS by using a per-thread writer epoch


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