| 108 | } |
| 109 | |
| 110 | void AsyncPool::AddAsyncTask(std::function<void()> job, Sync *pSync) |
| 111 | { |
| 112 | m_pool.push_back( new Async(job, pSync) ); |
| 113 | } |
| 114 | |
| 115 | // |
| 116 | // ExecAsyncIfThereIsAPool, will use async if there is a pool, otherwise will run the task synchronously |
no test coverage detected