This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
Other format: | [Raw text] |
On Thu, May 14, 2009 at 04:11:03PM -0400, Mathieu Desnoyers (compudj@krystal.dyndns.org) wrote: > > Patches to extend the userspace RCU code-base to include (ideally) > > MIT-style or LGPLv2.1-compatible xchg() primitives and also > > arch-specific memory barriers for other architectures are very welcome. > > See arch_x86.h and arch_atomic_x86.h for the detailed list of required > > per-architecture primitives. (note that get_cycles is only needed for > > the test programs, not the library per se) > > Note, however, that if someone sends a patch allowing selecting the gcc > atomic operations as a compile-time option, I would be inclined to merge > it, especially if it is proven useful for Linux distributions. I use attached m4 to select either libatomic, __sync or posix lock protected 'atomic' types in elliptics network to determine proper abstraction implemention. It requires a trivial bit of changes for the liburcu though. -- Evgeniy Polyakov
Attachment:
ac_check_atomic.m4
Description: Text document
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |