[PATCH v8 3/8] nptl: Add C11 threads call_once functions
Florian Weimer
fweimer@redhat.com
Fri Jul 13 09:32:00 GMT 2018
On 02/02/2018 06:04 PM, Adhemerval Zanella wrote:
> +#define ONCE_FLAG_INIT 0
> +
> typedef unsigned long int thrd_t;
> typedef int (*thrd_start_t) (void*);
> +typedef int __ONCE_ALIGNMENT once_flag;
__ONCE_ALIGNMENT is not expressible in C11, so I think you should turn
once_flag into a struct with a suitably aligned member, and change
ONCE_FLAG_INIT as well (into a compound literal).
Thanks,
Florian
More information about the Libc-alpha
mailing list