mirror of
https://sourceware.org/git/glibc.git
synced 2024-11-22 13:00:06 +00:00
manual: Add documentation for pthread_tryjoin_np and pthread_timedjoin_np
Reviewed-by: Adhemerval Zanella <adhemerval.zanella@linaro.org>
This commit is contained in:
parent
22434b2f03
commit
893bbdd007
@ -727,6 +727,30 @@ rather than @code{CLOCK_REALTIME}. Currently, @var{clockid} must be either
|
|||||||
returned.
|
returned.
|
||||||
@end deftypefun
|
@end deftypefun
|
||||||
|
|
||||||
|
@comment pthread.h
|
||||||
|
@comment GNU extension
|
||||||
|
@deftypefun int pthread_tryjoin_np (pthread_t *@var{thread},
|
||||||
|
void **@var{thread_return})
|
||||||
|
@standards{GNU, pthread.h}
|
||||||
|
@safety{@prelim{}@mtsafe{}@asunsafe{@asulock{}}@acunsafe{@aculock{}}}
|
||||||
|
Behaves like @code{pthread_join} except that it will return @code{EBUSY}
|
||||||
|
immediately if the thread specified by @var{thread} has not yet terminated.
|
||||||
|
@end deftypefun
|
||||||
|
|
||||||
|
@comment pthread.h
|
||||||
|
@comment GNU extension
|
||||||
|
@deftypefun int pthread_timedjoin_np (pthread_t *@var{thread},
|
||||||
|
void **@var{thread_return},
|
||||||
|
const struct timespec *@var{abstime})
|
||||||
|
@standards{GNU, pthread.h}
|
||||||
|
@safety{@prelim{}@mtsafe{}@asunsafe{@asulock{}}@acunsafe{@aculock{}}}
|
||||||
|
Behaves like @code{pthread_tryjoin_np} except that it will block until the
|
||||||
|
absolute time @var{abstime} measured against @code{CLOCK_REALTIME} is
|
||||||
|
reached if the thread has not terminated by that time and return
|
||||||
|
@code{EBUSY}. If @var{abstime} is equal to @code{NULL} then the function
|
||||||
|
will wait forever in the same way as @code{pthread_join}.
|
||||||
|
@end deftypefun
|
||||||
|
|
||||||
@c FIXME these are undocumented:
|
@c FIXME these are undocumented:
|
||||||
@c pthread_atfork
|
@c pthread_atfork
|
||||||
@c pthread_attr_destroy
|
@c pthread_attr_destroy
|
||||||
@ -844,6 +868,4 @@ returned.
|
|||||||
@c pthread_spin_trylock
|
@c pthread_spin_trylock
|
||||||
@c pthread_spin_unlock
|
@c pthread_spin_unlock
|
||||||
@c pthread_testcancel
|
@c pthread_testcancel
|
||||||
@c pthread_timedjoin_np
|
|
||||||
@c pthread_tryjoin_np
|
|
||||||
@c pthread_yield
|
@c pthread_yield
|
||||||
|
Loading…
Reference in New Issue
Block a user