| 31 | } |
| 32 | |
| 33 | void |
| 34 | dispatchTask(Task &task,size_t length) |
| 35 | { |
| 36 | if (length > _minIterations) |
| 37 | { |
| 38 | WorkerPool *curpool = WorkerPool::currentPool(); |
| 39 | if (curpool && !curpool->inWorkerThread()) |
| 40 | { |
| 41 | curpool->dispatch(task,length); |
| 42 | return; |
| 43 | } |
| 44 | } |
| 45 | task.execute(0,length,0); |
| 46 | } |
| 47 | |
| 48 | |
| 49 | size_t |
no test coverage detected