MCPcopy Create free account
hub / github.com/alibaba/CicadaPlayer / addJob

Method addJob

framework/utils/AsyncJob.cpp:60–66  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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 {

Callers 3

closeConnectionsMethod · 0.80
SeekMethod · 0.80

Calls 2

startMethod · 0.65
pushMethod · 0.45

Tested by

no test coverage detected