[ovs-dev] [threads 00/11] basic thread support library
Ben Pfaff
blp at nicira.com
Wed Jun 19 21:22:04 UTC 2013
On Wed, Jun 19, 2013 at 05:20:11PM -0400, Ed Maste wrote:
> On 19 June 2013 16:17, Ben Pfaff <blp at nicira.com> wrote:
> > This series has two purposes:
> >
> > * Add a basic thread support library to the tree.
> >
> > * Get rid of all calls to C library functions that POSIX describes
> > as inherently unsafe in a multithreaded program, and then add a
> > make-time check that flags an error if any calls get reintroduced.
>
> This fails to build on FreeBSD for me, because it appears to rely on
> header leakage for stdint.h types.
>
> In file included from lib/ovs-atomic.h:237,
> from lib/ovs-thread.h:23,
> from lib/command-line.c:22:
> lib/ovs-atomic-c11.h:26: error: expected '=', ',', ';', 'asm' or
> '__attribute__' before 'uint8_t'
Does this mean that FreeBSD has <stdatomic.h>? Is it fully
functional? That's the one implementation I wasn't able to test,
because I didn't know of any C11 implementations with <stdatomic.h>.
More information about the dev
mailing list