| 76 | } // namespace |
| 77 | |
| 78 | TaskPool::TaskPool(uint32_t threadCount) : _scheduler(std::make_unique<enki::TaskScheduler>()) |
| 79 | { |
| 80 | if (threadCount == 0) |
| 81 | { |
| 82 | _scheduler->Initialize(); |
| 83 | } |
| 84 | else |
| 85 | { |
| 86 | _scheduler->Initialize(threadCount); |
| 87 | } |
| 88 | } |
| 89 | |
| 90 | TaskPool::~TaskPool() |
| 91 | { |
nothing calls this directly
no test coverage detected