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

Function run_function

example/use-with-bthread/bthread_executor.h:36–41  ·  view source on GitHub ↗

线程函数

Source from the content-addressed store, hash-verified

34 private:
35 // 线程函数
36 inline static void* run_function(void* args) noexcept {
37 auto function = reinterpret_cast<MoveOnlyFunction<void(void)>*>(args);
38 (*function)();
39 delete function;
40 return nullptr;
41 }
42};
43
44// 使用bthread线程池的async

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected