MCPcopy Create free account
hub / github.com/apple/foundationdb / post

Method post

flow/include/flow/IThreadPool.h:157–165  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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(); }

Callers

nothing calls this directly

Calls 1

sendErrorMethod · 0.45

Tested by

no test coverage detected