| 153 | } |
| 154 | |
| 155 | void pushBack(JOB &data) { |
| 156 | JobQueue::lock(); |
| 157 | if (!underPushing) { |
| 158 | underPushing = true; |
| 159 | pushedSize = 0; |
| 160 | } |
| 161 | pushedSize++; |
| 162 | std::deque<JOB>::push_back(data); |
| 163 | JobQueue::unlock(); |
| 164 | JobQueue::signal(); |
| 165 | } |
| 166 | |
| 167 | void pushBackEnd() { underPushing = false; } |
| 168 |
no test coverage detected