mirror of
https://sourceware.org/git/glibc.git
synced 2024-11-22 13:00:06 +00:00
C11 threads: do not require PTHREAD_DESTRUCTOR_ITERATIONS
It is optional in POSIX. Reviewed-by: Adhemerval Zanella <adhemerval.zanella@linaro.org>
This commit is contained in:
parent
e5ad057068
commit
fc7283264d
@ -23,8 +23,10 @@ tss_create (tss_t *tss_id, tss_dtor_t destructor)
|
||||
{
|
||||
_Static_assert (sizeof (tss_t) == sizeof (pthread_key_t),
|
||||
"sizeof (tss_t) != sizeof (pthread_key_t)");
|
||||
#ifdef PTHREAD_DESTRUCTOR_ITERATIONS
|
||||
_Static_assert (TSS_DTOR_ITERATIONS == PTHREAD_DESTRUCTOR_ITERATIONS,
|
||||
"TSS_DTOR_ITERATIONS != PTHREAD_DESTRUCTOR_ITERATIONS");
|
||||
#endif
|
||||
|
||||
int err_code = __pthread_key_create (tss_id, destructor);
|
||||
return thrd_err_map (err_code);
|
||||
|
Loading…
Reference in New Issue
Block a user