16 dbg() <<
"START" << transactionDepth;
27 dbg() <<
"ADD" << transactionDepth << id;
29 if (transactionDepth > 0) {
30 lastInTransaction = id;
32 transactionQueue.push(pair<PROCESS, PROCESS>(
id,
id));
42 dbg() <<
"END" << transactionDepth;
44 if (transactionDepth > 0) {
46 if (transactionDepth == 0 && lastInTransaction !=
INVALID) {
47 transactionQueue.push(pair<PROCESS, PROCESS>(lastInTransaction, pid));
60 dbg() <<
"OVER" << transactionDepth << id;
62 if (!transactionQueue.empty() &&
id == transactionQueue.front().first) {
63 PROCESS ret = transactionQueue.front().second;
64 transactionQueue.pop();
void transactionEnd(Enums::PROCESS)
transactionEnd marks end of transaction
void transactionAdd(Enums::PROCESS)
transactionAdd If called after call to transactionStart() and before transactionEnd(),...
void transactionStart()
transactionStart this function is used to mark start of the sequence of processes that shall be treat...
Enums::PROCESS transactionIsOver(Enums::PROCESS)
transactionIsOver checks wheather currently finished process is last in current transaction
Enumerators for configuration and runtime items.