Split out architecture-dependent definitions into api.h and arch.h.
authorPaul E. McKenney <paulmck@linux.vnet.ibm.com>
Fri, 10 Apr 2009 16:41:19 +0000 (12:41 -0400)
committerMathieu Desnoyers <mathieu.desnoyers@polymtl.ca>
Fri, 10 Apr 2009 16:41:19 +0000 (12:41 -0400)
commit2d6debff95ad695255d2ea9d590d1e418590b238
treed227e8031a4e971d1602ae8ec1dc4ff50fcbe8a5
parent5873cd17404d996680e6afc2f11c2a3ee9b354fa
Split out architecture-dependent definitions into api.h and arch.h.

Break out architecture-specific definitions into api.h and arch.h.
Modify Makefile to add pthreads-x86 and pthreads-ppc targets to adapt
to either architecture.  Create api_x86.h, api_ppc.h, arch_x86.h, and
arch_ppc.h files.

The api/arch distinction is historical in nature.  In a perfect world,
these would be merged.  In reality, the __thread storage class does not
adapt nicely to accessing one thread's variables from another thread,
though sufficiently insane gcc hackery could probably make this work.
In the event, arch.h manually constructs an array of pointers to the
__thread variables that need cross-thread access, while api.h punts
and uses an array for the per-thread variables themselves, paying a
significant performance penalty for so doing.

Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@polymtl.ca>
Makefile
api.h
rcutorture.h
test_rwlock_timing.c
test_urcu_timing.c
urcu.h
This page took 0.02534 seconds and 4 git commands to generate.