| 280 | } |
| 281 | |
| 282 | int Coordinator::setupWorkers(int count) |
| 283 | { |
| 284 | // TODO adjust count |
| 285 | |
| 286 | for (int i = m_workers.getCount(); i < count; i++) |
| 287 | { |
| 288 | Worker* w = FB_NEW_POOL(*m_pool) Worker(this); |
| 289 | m_workers.add(w); |
| 290 | m_idleWorkers.push(w); |
| 291 | } |
| 292 | |
| 293 | return count; |
| 294 | } |
| 295 | |
| 296 | WorkerThread* Coordinator::getThread() |
| 297 | { |