We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4d4b596 commit 8d8cb24Copy full SHA for 8d8cb24
system/lib/libc/musl/src/thread/pthread_detach.c
@@ -11,11 +11,7 @@ static int __pthread_detach(pthread_t t)
11
/* If the cas fails, detach state is either already-detached
12
* or exiting/exited, and pthread_join will trap or cleanup. */
13
if (a_cas(&t->detach_state, DT_JOINABLE, DT_DETACHED) != DT_JOINABLE)
14
-#ifdef __EMSCRIPTEN__ // XXX Emscripten don't cleanup already-detached or exiting/exited threads
15
- return EINVAL;
16
-#else
17
return __pthread_join(t, 0);
18
-#endif
19
return 0;
20
}
21
0 commit comments