We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
pthread_detach()
1 parent 724b8be commit 982b8d2Copy full SHA for 982b8d2
1 file changed
system/lib/libc/musl/src/thread/pthread_detach.c
@@ -4,9 +4,10 @@
4
static int __pthread_detach(pthread_t t)
5
{
6
#ifdef __EMSCRIPTEN__
7
- // XXX Emscripten: Add check for invalid (already joined) thread. Again
+ // XXX EMSCRIPTEN: Add check for invalid (already joined) thread. Again
8
// for the benefit of the conformance tests.
9
- if (!_emscripten_thread_is_valid(t)) return ESRCH;
+ if (!_emscripten_thread_is_valid(t))
10
+ return ESRCH;
11
#endif
12
/* If the cas fails, detach state is either already-detached
13
* or exiting/exited, and pthread_join will trap or cleanup. */
0 commit comments