* @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 */
| 28 | * @param id Process that shall be treated as part of the transaction |
| 29 | */ |
| 30 | void 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. |
nothing calls this directly
no outgoing calls
no test coverage detected