mirror of
https://sourceware.org/git/glibc.git
synced 2025-07-30 22:43:12 +03:00
nptl: Fix pthread_tryjoin comment.
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>
This commit is contained in:
@ -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);
|
||||
}
|
||||
|
Reference in New Issue
Block a user