MCPcopy Create free account
hub / github.com/async-profiler/async-profiler / pthread_exit

Function pthread_exit

src/hooks.cpp:127–138  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

125}
126
127extern "C" WEAK DLLEXPORT
128void pthread_exit(void* retval) {
129 if (_orig_pthread_exit == NULL) {
130 _orig_pthread_exit = ADDRESS_OF(pthread_exit);
131 }
132 if (Hooks::initialized()) {
133 pthread_exit_hook(retval);
134 } else {
135 _orig_pthread_exit(retval);
136 }
137 abort(); // to suppress gcc warning
138}
139
140extern "C" WEAK DLLEXPORT
141void* dlopen(const char* filename, int flags) {

Callers

nothing calls this directly

Calls 1

pthread_exit_hookFunction · 0.85

Tested by

no test coverage detected