B2BITS FIX Antenna HFT
1.0.16
|
GlobalMsgId generator. More...
#include <FIXMessageEx.h>
Public Member Functions | |
System::u64 | curValue () const |
Returns the last GlobalMsgId. More... | |
GlobalMsgIdGen () | |
Constructor. More... | |
System::u64 | newValue () |
Generates a new GlobalMsgId. More... | |
void | reset (System::u64 value) |
Initializes the GlobalMsgId generator with the new start value. More... | |
Public Attributes | |
volatile int64_t | v_ |
The current GlobalMsgId. More... | |
GlobalMsgId generator.
|
inline |
Constructor.
Initializes the GlobalMsgId generator with the current time.
References System::Time::currentTimeUsec1970(), and reset().
|
inline |
Returns the last GlobalMsgId.
References v_.
Referenced by Engine::FIXMessageEx::getCurrGlobalMsgId().
|
inline |
Generates a new GlobalMsgId.
References atomic_incr64, and v_.
Referenced by Engine::FIXMessageEx::generateNewGlobalId(), and Engine::FIXMessageEx::generateNewGlobalIdBeforeSend().
|
inline |
Initializes the GlobalMsgId generator with the new start value.
References v_.
Referenced by GlobalMsgIdGen(), and Engine::FIXMessageEx::seedGlobalMsgId().
volatile int64_t Engine::GlobalMsgIdGen::v_ |
The current GlobalMsgId.
Referenced by curValue(), newValue(), and reset().