This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: [PATCH] Implement libc_once_retry for atomic initialization with allocation
- From: Andreas Schwab <schwab at suse dot de>
- To: Florian Weimer <fweimer at redhat dot com>
- Cc: GNU C Library <libc-alpha at sourceware dot org>, Torvald Riegel <triegel at redhat dot com>, "Dmitry V. Levin" <ldv at altlinux dot org>
- Date: Thu, 04 Jan 2018 16:15:28 +0100
- Subject: Re: [PATCH] Implement libc_once_retry for atomic initialization with allocation
- Authentication-results: sourceware.org; auth=none
- References: <6e4b6b22-3f38-f798-f2e0-eb22311ed6b5@redhat.com>
On Jan 04 2018, Florian Weimer <fweimer@redhat.com> wrote:
> + static inline struct foo *
> + get_foo (void)
> + {
> + return __libc_once_retry (&global_foo, allocate_foo, free_foo, NULL);
s/__//
Andreas.
--
Andreas Schwab, SUSE Labs, schwab@suse.de
GPG Key fingerprint = 0196 BAD8 1CE9 1970 F4BE 1748 E4D4 88E3 0EEA B9D7
"And now for something completely different."