proxygen
|
#include <entangle.h>
Public Member Functions | |
bool | tryLockBoth () |
void | lockBoth () |
void | unlockBoth () |
entangled ()=delete | |
entangled (const entangled &)=delete | |
entangled & | operator= (const entangled &)=delete |
entangled & | operator= (entangled &&)=delete |
entangled (T t) | |
entangled (entangled &&other) | |
~entangled () | |
Dual * | lockPointerToDual () |
void | unlockPointerToDual () |
Public Attributes | |
std::atomic< int > | stateMachine |
T | t |
entangled< Dual, T > * | dual |
Static Public Attributes | |
static const int | kUnlocked = 0 |
static const int | kLocked = 1 |
static const int | kLockedAndLossAcknowledged = 2 |
Definition at line 71 of file entangle.h.
|
delete |
Referenced by folly::pushmi::entangled< T, Dual >::unlockBoth().
|
delete |
|
inlineexplicit |
Definition at line 168 of file entangle.h.
|
inline |
Definition at line 170 of file entangle.h.
References folly::pushmi::entangled< T, Dual >::dual, and folly::pushmi::entangled< T, Dual >::unlockBoth().
|
inline |
Definition at line 195 of file entangle.h.
References folly::pushmi::entangled< T, Dual >::dual, folly::pushmi::entangled< T, Dual >::lockBoth(), and folly::pushmi::entangled< T, Dual >::unlockBoth().
|
inline |
Definition at line 139 of file entangle.h.
References folly::pushmi::entangled< T, Dual >::tryLockBoth().
Referenced by folly::pushmi::locked_entangled_pair< T, Dual >::locked_entangled_pair(), folly::pushmi::entangled< T, Dual >::lockPointerToDual(), and folly::pushmi::entangled< T, Dual >::~entangled().
|
inline |
Definition at line 204 of file entangle.h.
References folly::pushmi::entangled< T, Dual >::lockBoth(), and folly::pushmi::entangled< T, Dual >::t.
|
delete |
|
delete |
|
inline |
Definition at line 92 of file entangle.h.
References folly::pushmi::entangled< T, Dual >::kLockedAndLossAcknowledged, folly::pushmi::entangled< T, Dual >::kUnlocked, and folly::pushmi::entangled< T, Dual >::stateMachine.
Referenced by folly::pushmi::entangled< T, Dual >::lockBoth().
|
inline |
Definition at line 150 of file entangle.h.
References folly::pushmi::entangled< T, Dual >::entangled(), folly::pushmi::entangled< T, Dual >::operator=(), and folly::pushmi::entangled< T, Dual >::stateMachine.
Referenced by folly::pushmi::entangled< T, Dual >::entangled(), folly::pushmi::entangled< T, Dual >::unlockPointerToDual(), folly::pushmi::entangled< T, Dual >::~entangled(), and folly::pushmi::locked_entangled_pair< T, Dual >::~locked_entangled_pair().
|
inline |
Definition at line 209 of file entangle.h.
References folly::pushmi::entangled< T, Dual >::unlockBoth().
entangled<Dual, T>* folly::pushmi::entangled< T, Dual >::dual |
Definition at line 79 of file entangle.h.
Referenced by folly::pushmi::entangle(), folly::pushmi::entangled< T, Dual >::entangled(), folly::pushmi::locked_entangled_pair< T, Dual >::locked_entangled_pair(), and folly::pushmi::entangled< T, Dual >::~entangled().
|
static |
Definition at line 82 of file entangle.h.
|
static |
Definition at line 83 of file entangle.h.
Referenced by folly::pushmi::entangled< T, Dual >::tryLockBoth().
|
static |
Definition at line 81 of file entangle.h.
Referenced by folly::pushmi::entangled< T, Dual >::tryLockBoth().
std::atomic<int> folly::pushmi::entangled< T, Dual >::stateMachine |
Definition at line 74 of file entangle.h.
Referenced by folly::pushmi::entangled< T, Dual >::tryLockBoth(), and folly::pushmi::entangled< T, Dual >::unlockBoth().
T folly::pushmi::entangled< T, Dual >::t |
Definition at line 76 of file entangle.h.
Referenced by folly::pushmi::locked_entangled_pair< T, Dual >::locked_entangled_pair(), and folly::pushmi::entangled< T, Dual >::lockPointerToDual().