MCPcopy Create free account
hub / github.com/alibaba/async_simple / checkout

Method checkout

async_simple/executors/SimpleExecutor.h:67–70  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

65 size_t currentContextId() const override { return _pool.getCurrentId(); }
66
67 Context checkout() override {
68 // avoid CurrentId equal to NULLCTX
69 return reinterpret_cast<Context>(_pool.getCurrentId() | kContextMask);
70 }
71
72 bool checkin(Func func, Context ctx, ScheduleOptions opts) override {
73 int64_t id = reinterpret_cast<int64_t>(ctx);

Callers

nothing calls this directly

Calls 1

getCurrentIdMethod · 0.80

Tested by

no test coverage detected