| 70 | } |
| 71 | |
| 72 | bool checkin(Func func, Context ctx, ScheduleOptions opts) override { |
| 73 | int64_t id = reinterpret_cast<int64_t>(ctx); |
| 74 | auto prompt = |
| 75 | _pool.getCurrentId() == (id & (~kContextMask)) && opts.prompt; |
| 76 | if (prompt) { |
| 77 | func(); |
| 78 | return true; |
| 79 | } |
| 80 | return _pool.scheduleById(std::move(func), id & (~kContextMask)) == |
| 81 | util::ThreadPool::ERROR_NONE; |
| 82 | } |
| 83 | |
| 84 | IOExecutor* getIOExecutor() override { return &_ioExecutor; } |
| 85 |
nothing calls this directly
no test coverage detected