| 176 | } |
| 177 | |
| 178 | extern "C" void |
| 179 | pthread_exit(void *retval) |
| 180 | { |
| 181 | { |
| 182 | WrapperLock wrapperLock; |
| 183 | |
| 184 | ThreadList::threadExit(); |
| 185 | PluginManager::eventHook(DMTCP_EVENT_PTHREAD_EXIT, NULL); |
| 186 | } |
| 187 | |
| 188 | _real_pthread_exit(retval); |
| 189 | for (;;) { // To hide compiler warning about "noreturn" function |
| 190 | } |
| 191 | } |
| 192 | |
| 193 | /* |
| 194 | * pthread_join() is a blocking call that waits for the given thread to exit. |
no test coverage detected