| 82 | } |
| 83 | |
| 84 | static void pthread_exit_hook(void* retval) { |
| 85 | Log::debug("thread_exit: 0x%lx", (unsigned long)(uintptr_t)pthread_self()); |
| 86 | CpuEngine::onThreadEnd(); |
| 87 | |
| 88 | _orig_pthread_exit(retval); |
| 89 | } |
| 90 | |
| 91 | |
| 92 | typedef void* (*dlopen_t)(const char*, int); |