rx: atomic bit ops
authorSimon Wilkinson <sxw@your-file-system.com>
Mon, 21 Jan 2013 21:50:25 +0000 (16:50 -0500)
committerDerrick Brashear <shadow@your-file-system.com>
Fri, 1 Feb 2013 05:03:08 +0000 (21:03 -0800)
commit1839cdbe268f4b19ac8e81ae78548f5c78e0c641
treec08f375ec9dd2b5bf02df98cd685e682ab708a7f
parentbf4cda8a5551719a005e4f927dfd1fb25dc2c219
rx: atomic bit ops

Add rx_atomic_test_bit, rx_atomic_set_bit, and rx_atomic_clear_bit
to provide bitwise operations over atomic types. These allow the
use of atomic flag variables.

Uses native platform atomic operations wherever these are available,
otherwise falls back to our 'standard' MUTEX based implementation.

LICENSE BSD

Change-Id: I161631b2408e85f757ff04bf831a631ccb1f930d
Reviewed-on: http://gerrit.openafs.org/8936
Reviewed-by: Marc Dionne <marc.c.dionne@gmail.com>
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-by: Derrick Brashear <shadow@your-file-system.com>
src/rx/rx_atomic.h