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

Function migrate

thread/std-compat.cpp:71–76  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

69namespace this_thread {
70
71void migrate() {
72 if (unlikely(!g_work_pool)) {
73 throw_system_error(EPERM, "this_thread::migrate: work pool is not initialized");
74 }
75 g_work_pool->thread_migrate();
76}
77
78}
79

Callers

nothing calls this directly

Calls 3

throw_system_errorFunction · 0.85
unlikelyFunction · 0.50
thread_migrateMethod · 0.45

Tested by

no test coverage detected