| 124 | // |
| 125 | // |
| 126 | QueueMode Queue::setMode(QueueMode eMode) |
| 127 | { |
| 128 | bool fNeedNotification = false; |
| 129 | { |
| 130 | std::scoped_lock sync(m_mtxData); |
| 131 | std::swap(m_eMode, eMode); |
| 132 | fNeedNotification = testFlag(m_eMode, QueueMode::Get); |
| 133 | } |
| 134 | |
| 135 | if (fNeedNotification) |
| 136 | notifyDelayedData(); |
| 137 | |
| 138 | return eMode; |
| 139 | } |
| 140 | |
| 141 | // |
| 142 | // |
no test coverage detected