MCPcopy Create free account
hub / github.com/baidu/babylon / execute_invoke_closure

Function execute_invoke_closure

example/use-with-bthread/bthread_graph_executor.cpp:22–31  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

20}
21
22static void* execute_invoke_closure(void* args) {
23 auto param =
24 reinterpret_cast<::std::tuple<ClosureContext*, Closure::Callback*>*>(
25 args);
26 auto closure = ::std::get<0>(*param);
27 auto callback = ::std::get<1>(*param);
28 closure->run(callback);
29 delete param;
30 return NULL;
31}
32
33BthreadGraphExecutor& BthreadGraphExecutor::instance() {
34 static BthreadGraphExecutor executor;

Callers

nothing calls this directly

Calls 1

runMethod · 0.45

Tested by

no test coverage detected