| 332 | } |
| 333 | |
| 334 | void NPar::TLocalExecutor::ClearLPQueue() { |
| 335 | for (bool cont = true; cont;) { |
| 336 | cont = false; |
| 337 | TSingleJob job; |
| 338 | while (Impl_->LowJobQueue.Dequeue(&job)) { |
| 339 | --Impl_->LPQueueSize; |
| 340 | cont = true; |
| 341 | } |
| 342 | while (Impl_->MedJobQueue.Dequeue(&job)) { |
| 343 | --Impl_->MPQueueSize; |
| 344 | cont = true; |
| 345 | } |
| 346 | } |
| 347 | } |
| 348 | |
| 349 | int NPar::TLocalExecutor::GetQueueSize() const noexcept { |
| 350 | return Impl_->QueueSize.load(); |