This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: [PATCH v8 3/8] nptl: Add C11 threads call_once functions
- From: Florian Weimer <fweimer at redhat dot com>
- To: Adhemerval Zanella <adhemerval dot zanella at linaro dot org>, libc-alpha at sourceware dot org
- Date: Fri, 13 Jul 2018 11:32:49 +0200
- Subject: Re: [PATCH v8 3/8] nptl: Add C11 threads call_once functions
- References: <1517591084-11347-1-git-send-email-adhemerval.zanella@linaro.org> <1517591084-11347-4-git-send-email-adhemerval.zanella@linaro.org>
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