| 261 | } |
| 262 | |
| 263 | inline |
| 264 | ITask::Ptr IoQueue::doDequeue(std::atomic_bool& hint) |
| 265 | { |
| 266 | hint = _queue.empty(); |
| 267 | if (!hint) |
| 268 | { |
| 269 | ITask::Ptr task = _queue.front(); |
| 270 | _queue.pop_front(); |
| 271 | _stats.decNumElements(); |
| 272 | return task; |
| 273 | } |
| 274 | return nullptr; |
| 275 | } |
| 276 | |
| 277 | inline |
| 278 | ITask::Ptr IoQueue::tryDequeueFromShared() |
nothing calls this directly
no test coverage detected