Storage Engine API
mongo::CounterOps Struct Reference

Operations for manipulating the lock statistics abstracting whether they are atomic or not. More...

#include <lock_stats.h>

Detailed Description

Operations for manipulating the lock statistics abstracting whether they are atomic or not.

Static Public Member Functions

static int64_t get (const int64_t &counter)
 
static int64_t get (const AtomicInt64 &counter)
 
static void set (int64_t &counter, int64_t value)
 
static void set (AtomicInt64 &counter, int64_t value)
 
static void add (int64_t &counter, int64_t value)
 
static void add (int64_t &counter, const AtomicInt64 &value)
 
static void add (AtomicInt64 &counter, int64_t value)
 

Member Function Documentation

◆ add() [1/3]

static void mongo::CounterOps::add ( int64_t &  counter,
int64_t  value 
)
inlinestatic

◆ add() [2/3]

static void mongo::CounterOps::add ( int64_t &  counter,
const AtomicInt64 &  value 
)
inlinestatic

◆ add() [3/3]

static void mongo::CounterOps::add ( AtomicInt64 &  counter,
int64_t  value 
)
inlinestatic

◆ get() [1/2]

static int64_t mongo::CounterOps::get ( const int64_t &  counter)
inlinestatic

◆ get() [2/2]

static int64_t mongo::CounterOps::get ( const AtomicInt64 &  counter)
inlinestatic

◆ set() [1/2]

static void mongo::CounterOps::set ( int64_t &  counter,
int64_t  value 
)
inlinestatic

◆ set() [2/2]

static void mongo::CounterOps::set ( AtomicInt64 &  counter,
int64_t  value 
)
inlinestatic

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