| 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); |
nothing calls this directly
no test coverage detected