| 357 | mCopyAfterLoopFunctors.clear(); |
| 358 | } |
| 359 | void processAsyncFunctors() |
| 360 | { |
| 361 | swapAsyncFunctors(); |
| 362 | |
| 363 | for (const auto& x : mCopyAsyncFunctors) |
| 364 | { |
| 365 | x(); |
| 366 | } |
| 367 | mCopyAsyncFunctors.clear(); |
| 368 | } |
| 369 | void swapAsyncFunctors() |
| 370 | { |
| 371 | std::lock_guard<std::mutex> lck(mAsyncFunctorsMutex); |