RTBKit  0.9
Open-source framework to create real-time ad bidding systems.
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator
Classes | Public Member Functions | Static Public Member Functions | Public Attributes | Static Public Attributes
Datacratic::RcuLock Struct Reference

List of all members.

Classes

struct  ThreadGcInfo
 A thread's overall bookkeeping information. More...
struct  ThreadGcInfoEntry
 A thread's bookkeeping info about each GC area. More...

Public Member Functions

void enterCS ()
void exitCS ()
int myEpoch () const
int currentEpoch () const
JML_ALWAYS_INLINE
ThreadGcInfoEntry
getEntry () const
void lockShared ()
void unlockShared ()
bool isLockedShared ()
void lockExclusive ()
void unlockExclusive ()
bool isLockedExclusive ()
void visibleBarrier ()
void deferBarrier ()
void defer (boost::function< void()> work)
void defer (void(work)(void *), void *arg)
void defer (void(work)(void *, void *), void *arg1, void *arg2)
void defer (void(work)(void *, void *, void *), void *arg1, void *arg2, void *arg3)
void dump ()

Static Public Member Functions

static void callFn (void *arg)

Public Attributes

bool exclusiveMode
 If true we fall back to a RW mutex.
ML::RWLock exclusionMutex
 The RW mutex for exclusive mode.
int index
 Which global thread number we are.

Static Public Attributes

static ML::Thread_Specific
< ThreadGcInfo
gcInfo
 Thread-specific bookkeeping.
static int currentIndex = 0

Detailed Description

Definition at line 21 of file rcu_lock.h.


The documentation for this struct was generated from the following files:
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator