| 125 | } |
| 126 | |
| 127 | extern "C" WEAK DLLEXPORT |
| 128 | void 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 | |
| 140 | extern "C" WEAK DLLEXPORT |
| 141 | void* dlopen(const char* filename, int flags) { |
nothing calls this directly
no test coverage detected