summaryrefslogtreecommitdiffstats
path: root/libc/bionic/pthread_detach.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'libc/bionic/pthread_detach.cpp')
-rw-r--r--libc/bionic/pthread_detach.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/libc/bionic/pthread_detach.cpp b/libc/bionic/pthread_detach.cpp
index 0712d0d..7ae5eb4 100644
--- a/libc/bionic/pthread_detach.cpp
+++ b/libc/bionic/pthread_detach.cpp
@@ -44,9 +44,9 @@ int pthread_detach(pthread_t t) {
}
switch (old_state) {
case THREAD_NOT_JOINED: return 0;
- case THREAD_JOINED: return 0; // Already being joined; silently do nothing, like glibc.
+ case THREAD_JOINED: return 0; // Already being joined; silently do nothing, like glibc.
case THREAD_DETACHED: return THREAD_DETACHED;
- case THREAD_EXITED_NOT_JOINED: // Call pthread_join out of scope of pthread_accessor.
+ case THREAD_EXITED_NOT_JOINED: break; // Call pthread_join out of scope of pthread_accessor.
}
}