proxygen
|
#include <FlatCombiningExamples.h>
Public Member Functions | |
FcCustomExample (int size, bool dedicated=true, uint32_t numRecs=0, uint32_t maxOps=0) | |
uint64_t | getVal () |
void | addNoFC (uint64_t val) |
void | add (uint64_t val, Rec *rec=nullptr) |
uint64_t | fetchAddNoFC (uint64_t val) |
uint64_t | fetchAdd (uint64_t val, Rec *rec=nullptr) |
void | combinedOp (Req &req) |
Public Member Functions inherited from folly::FlatCombining< FcCustomExample< Req, Mutex, Atom >, Mutex, Atom, Req > | |
FlatCombining (const bool dedicated=true, const uint32_t numRecs=0, const uint32_t maxOps=0) | |
~FlatCombining () | |
void | drainAll () |
void | acquireExclusive () |
bool | tryExclusive () |
void | releaseExclusive () |
void | holdLock (LockHolder &l) |
void | holdLock (LockHolder &l, std::defer_lock_t) |
void | requestNoFC (OpFunc &opFn) |
void | requestFC (OpFunc &&opFn, Rec *rec=nullptr, bool syncop=true) |
void | requestFC (OpFunc &&opFn, const FillFunc &fillFn, Rec *rec=nullptr, bool syncop=true) |
void | requestFC (OpFunc &&opFn, const FillFunc &fillFn, const ResFn &resFn, Rec *rec=nullptr) |
Rec * | allocRec () |
void | freeRec (Rec *rec) |
uint64_t | getNumUncombined () const |
uint64_t | getNumCombined () const |
uint64_t | getNumPasses () const |
uint64_t | getNumSessions () const |
Private Types | |
using | FC = FlatCombining< FcCustomExample< Req, Mutex, Atom >, Mutex, Atom, Req > |
using | Rec = typename FC::Rec |
Private Attributes | |
Data | data_ |
Definition at line 165 of file FlatCombiningExamples.h.
|
private |
Definition at line 170 of file FlatCombiningExamples.h.
|
private |
Definition at line 171 of file FlatCombiningExamples.h.
|
inlineexplicit |
Definition at line 174 of file FlatCombiningExamples.h.
|
inline |
Definition at line 191 of file FlatCombiningExamples.h.
References folly::Req::ADD, data_, and val.
|
inline |
Definition at line 187 of file FlatCombiningExamples.h.
References data_.
|
inline |
Definition at line 222 of file FlatCombiningExamples.h.
References folly::Req::ADD, folly::assume_unreachable(), data_, folly::Req::FETCHADD, folly::Req::getType(), folly::Req::getVal(), and folly::Req::setRes().
|
inline |
Definition at line 209 of file FlatCombiningExamples.h.
References data_, folly::Req::FETCHADD, and uint64_t.
|
inline |
Definition at line 202 of file FlatCombiningExamples.h.
References data_, and uint64_t.
|
inline |
|
private |
Definition at line 235 of file FlatCombiningExamples.h.