MCPcopy Create free account
hub / github.com/apache/thrift / Task

Method Task

lib/cpp/src/thrift/concurrency/ThreadManager.cpp:183–189  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

181 enum STATE { WAITING, EXECUTING, TIMEDOUT, COMPLETE };
182
183 Task(shared_ptr<Runnable> runnable, uint64_t expiration = 0ULL)
184 : runnable_(runnable),
185 state_(WAITING) {
186 if (expiration != 0ULL) {
187 expireTime_.reset(new std::chrono::steady_clock::time_point(std::chrono::steady_clock::now() + std::chrono::milliseconds(expiration)));
188 }
189 }
190
191 ~Task() override = default;
192

Callers

nothing calls this directly

Calls 2

nowFunction · 0.85
resetMethod · 0.45

Tested by

no test coverage detected