mirror of
https://sourceware.org/git/glibc.git
synced 2024-11-14 01:00:07 +00:00
htl: Make __PTHREAD_ONCE_INIT more flexible
by moving its (struct __pthread_once) cast into PTHREAD_ONCE_INIT. Reviewed-by: Adhemerval Zanella <adhemerval.zanella@linaro.org>
This commit is contained in:
parent
0c0361235c
commit
f827f0e473
@ -28,6 +28,6 @@ struct __pthread_once
|
||||
};
|
||||
|
||||
#define __PTHREAD_ONCE_INIT \
|
||||
(struct __pthread_once) { 0, __PTHREAD_SPIN_LOCK_INITIALIZER }
|
||||
0, __PTHREAD_SPIN_LOCK_INITIALIZER
|
||||
|
||||
#endif /* bits/types/struct___pthread_once.h */
|
||||
|
@ -802,7 +802,7 @@ extern int pthread_setspecific (pthread_key_t __key, const void *__value)
|
||||
|
||||
#include <bits/types/struct___pthread_once.h>
|
||||
|
||||
#define PTHREAD_ONCE_INIT __PTHREAD_ONCE_INIT
|
||||
#define PTHREAD_ONCE_INIT (struct __pthread_once) { __PTHREAD_ONCE_INIT }
|
||||
|
||||
/* Call INIT_ROUTINE if this function has never been called with
|
||||
*ONCE_CONTROL, otherwise do nothing. */
|
||||
|
Loading…
Reference in New Issue
Block a user