[llvm-commits] [compiler-rt] r153735 - /compiler-rt/trunk/lib/atomic.c
Anton Korobeynikov
anton at korobeynikov.info
Fri Mar 30 01:43:34 PDT 2012
Hi David
> +////////////////////////////////////////////////////////////////////////////////
> +// Platform-specific lock implementation. Falls back to spinlocks if none is
> +// defined. Each platform should define the Lock type, and corresponding
> +// lock() and unlock() functions.
> +////////////////////////////////////////////////////////////////////////////////
> +#ifdef __FreeBSD__
> +#include <errno.h>
> +#include <sys/types.h>
> +#include <machine/atomic.h>
> +#include <sys/umtx.h>
If every platform should add stuff here - maybe we'd better go via
platform-per-file approach? Instead of having bunch of independent
code in the single file?
--
With best regards, Anton Korobeynikov
Faculty of Mathematics and Mechanics, Saint Petersburg State University
More information about the llvm-commits
mailing list