| 155 | thread = userData; |
| 156 | } |
| 157 | void post(PThreadAction action) override { |
| 158 | try { |
| 159 | (*action)(thread); |
| 160 | } catch (Error& e) { |
| 161 | errors.sendError(e); |
| 162 | } catch (...) { |
| 163 | errors.sendError(unknown_error()); |
| 164 | } |
| 165 | } |
| 166 | Future<Void> stop(Error const& e) override { return Void(); } |
| 167 | void addref() override { ReferenceCounted<DummyThreadPool>::addref(); } |
| 168 | void delref() override { ReferenceCounted<DummyThreadPool>::delref(); } |