MCPcopy Create free account
hub / github.com/alibaba/PhotonLibOS / work_pool_fini

Function work_pool_fini

thread/std-compat.cpp:59–67  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

57}
58
59int work_pool_fini() {
60 if (g_work_pool == nullptr) {
61 log_error("work pool is not initialized");
62 return -1;
63 }
64 delete g_work_pool;
65 g_work_pool = nullptr;
66 return 0;
67}
68
69namespace this_thread {
70

Callers 3

TESTFunction · 0.85
~GlobalEnvMethod · 0.85
TESTFunction · 0.85

Calls 1

log_errorFunction · 0.85

Tested by 3

TESTFunction · 0.68
~GlobalEnvMethod · 0.68
TESTFunction · 0.68