| 236 | } |
| 237 | |
| 238 | void appendToQueue(const std::string & holderID, |
| 239 | U64 nodeHash, |
| 240 | bool removeAll) |
| 241 | { |
| 242 | { |
| 243 | QMutexLocker k(&_requestQueueMutex); |
| 244 | CleanRequest r; |
| 245 | r.holderID = holderID; |
| 246 | r.nodeHash = nodeHash; |
| 247 | r.removeAll = removeAll; |
| 248 | _requestsQueues.push_back(r); |
| 249 | } |
| 250 | if ( !isRunning() ) { |
| 251 | start(); |
| 252 | } else { |
| 253 | QMutexLocker k(&_requestQueueMutex); |
| 254 | _requestsQueueNotEmptyCond.wakeOne(); |
| 255 | } |
| 256 | } |
| 257 | |
| 258 | void quitThread() |
| 259 | { |
no test coverage detected