MCPcopy Create free account
hub / github.com/LiteLDev/LeviLamina / execute

Method execute

src/ll/api/thread/ThreadPoolExecutor.cpp:119–122  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

117void ThreadPoolExecutor::destroy() { impl.reset(); }
118
119void ThreadPoolExecutor::execute(std::function<void()> f) const {
120 impl->tasks.enqueue(std::move(f));
121 impl->taskCount.release();
122}
123std::shared_ptr<data::CancellableCallback>
124ThreadPoolExecutor::executeAfter(std::function<void()> f, Duration dur) const {
125 if (dur <= Duration{0}) {

Callers 1

ScheduledWorkerMethod · 0.45

Calls 1

releaseMethod · 0.45

Tested by

no test coverage detected