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

Method checkin

async_simple/uthread/test/UthreadTest.cpp:149–151  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

147 bool currentThreadInExecutor() const override { return true; }
148 Context checkout() override { return NULLCTX; }
149 bool checkin(Func func, Context ctx, ScheduleOptions opts) override {
150 return schedule(std::move(func));
151 }
152};
153
154// reschedule uthread to two different executor is not thread-safe

Callers 2

await_suspendMethod · 0.45
await_suspendMethod · 0.45

Calls 1

scheduleFunction · 0.85

Tested by

no test coverage detected