| 58 | } |
| 59 | |
| 60 | void AsyncJob::addJob(std::function<void()> func) |
| 61 | { |
| 62 | std::lock_guard<std::mutex> lock(mMutex); |
| 63 | mJobItems.push(func); |
| 64 | mThread->start(); |
| 65 | mSleepCond.notify_all(); |
| 66 | } |
| 67 | |
| 68 | int64_t AsyncJob::addDelayJob(int64_t delayMs, std::function<void()> func) |
| 69 | { |
no test coverage detected