nptl: Fix pthread_tryjoin comment.
authorCarlos O'Donell <carlos@redhat.com>
Mon, 11 Feb 2019 21:02:56 +0000 (16:02 -0500)
committerCarlos O'Donell <carlos@redhat.com>
Tue, 19 Feb 2019 14:22:34 +0000 (09:22 -0500)
In pthread_tryjoin if pd->tid == 0 then we will not block on a
futex operation because we will immediately see the join is already
complete and return. The comment is fixed to reflect that.

Signed-off-by: Carlos O'Donell <carlos@redhat.com>
ChangeLog
nptl/pthread_tryjoin.c

index de10cb5..95765b8 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2019-02-19  Carlos O'Donell  <carlos@redhat.com>
+
+       * nptl/pthread_tryjoin.c: Fix comment.
+
 2019-02-18  Joseph Myers  <joseph@codesourcery.com>
 
        [BZ #24231]
index aa4fe07..7dbf228 100644 (file)
@@ -26,7 +26,7 @@ pthread_tryjoin_np (pthread_t threadid, void **thread_return)
   if (pd->tid != 0)
     return EBUSY;
 
-  /* If pd->tid != 0 then lll_wait_tid will not block on futex
+  /* If pd->tid == 0 then lll_wait_tid will not block on futex
      operation.  */
   return __pthread_timedjoin_ex (threadid, thread_return, NULL, false);
 }