]> git.michaelhowe.org Git - packages/o/openafs.git/commit
DEVEL15-rx-mutex-interlocked-macros-20080311
authorJeffrey Altman <jaltman@secure-endpoints.com>
Tue, 11 Mar 2008 18:27:39 +0000 (18:27 +0000)
committerJeffrey Altman <jaltman@secure-endpoints.com>
Tue, 11 Mar 2008 18:27:39 +0000 (18:27 +0000)
commit1af1720b3cef64e451e976ff17e18075f7e7c51f
tree1c3726cf63e7d724fe028f6fabec70562b335997
parent392732e3eef4aba0ca0985fbcda5344e468d2e29
DEVEL15-rx-mutex-interlocked-macros-20080311

LICENSE IPL10

Introduce a new set of macros that can be used to permit either mutex
based protection or Interlocked operation protection increments,
decrements, or additions.

  rx_MutexIncrement(object, mutex)
  rx_MutexAdd(object, addend, mutex)
  rx_MutexDecrement(object, mutex)
  rx_MutexAdd1Increment2(object1, addend, object2, mutex)
  rx_MutexAdd1Decrement2(object1, addend, object2, mutex)

For Windows these are implemented with the Interlocked operations
for other platforms the existing mutex is relied upon.

Only a subset of the rx_stats parameters have been transitioned at the
current time.

(cherry picked from commit c86ae86a53c8a8e5acc099e1ea437e3571b2e63d)
src/rx/rx.c
src/rx/rx.h
src/rx/rx_globals.h
src/rx/rx_packet.c