MCPcopy Create free account
hub / github.com/IJHack/QtPass / transactionAdd

Method transactionAdd

src/simpletransaction.cpp:30–39  ·  view source on GitHub ↗

* @brief If called after transactionStart() and before transactionEnd(), * this marks the given process as the next step in the transaction. * Otherwise it marks the process as the only step in the transaction. * @param id Process that shall be treated as part of the transaction */

Source from the content-addressed store, hash-verified

28 * @param id Process that shall be treated as part of the transaction
29 */
30void simpleTransaction::transactionAdd(PROCESS id) {
31#ifdef QT_DEBUG
32 dbg() << "ADD" << transactionDepth << id;
33#endif
34 if (transactionDepth > 0) {
35 lastInTransaction = id;
36 } else {
37 transactionQueue.emplace(id, id);
38 }
39}
40
41/**
42 * @brief Marks the end of the current transaction.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected