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

Function _photon_thread_die

thread/thread.cpp:1014–1018  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1012 extern "C" __attribute__((noreturn))
1013 void _photon_thread_die(thread* th) asm("_photon_thread_die");
1014 void _photon_thread_die(thread* th) {
1015 assert(th == CURRENT);
1016 th->die();
1017 __builtin_unreachable();
1018 }
1019
1020 // the function is written in assembly to make use of the fact
1021 // that CURRENT is passed in via rbp/x29 as the first argument,

Callers 1

thread_exitFunction · 0.85

Calls 1

dieMethod · 0.80

Tested by

no test coverage detected