| 199 | } |
| 200 | |
| 201 | bool NPar::TLocalExecutor::TImpl::GetJob(TSingleJob* job) { |
| 202 | if (JobQueue.Dequeue(job)) { |
| 203 | CurrentTaskPriority = TLocalExecutor::HIGH_PRIORITY; |
| 204 | --QueueSize; |
| 205 | return true; |
| 206 | } else if (MedJobQueue.Dequeue(job)) { |
| 207 | CurrentTaskPriority = TLocalExecutor::MED_PRIORITY; |
| 208 | --MPQueueSize; |
| 209 | return true; |
| 210 | } else if (LowJobQueue.Dequeue(job)) { |
| 211 | CurrentTaskPriority = TLocalExecutor::LOW_PRIORITY; |
| 212 | --LPQueueSize; |
| 213 | return true; |
| 214 | } |
| 215 | return false; |
| 216 | } |
| 217 | |
| 218 | void NPar::TLocalExecutor::TImpl::RunNewThread() { |
| 219 | ++ThreadCount; |
no test coverage detected