OpenAFS CVS Commit: openafs/src/rx by jaltman

cvs@GRAND.CENTRAL.ORG cvs@GRAND.CENTRAL.ORG
Tue, 11 Mar 2008 14:23:24 EDT


Update of /cvs/openafs/src/rx
In directory GRAND.CENTRAL.ORG:/home/jaltman/openafs/cvs-1-3/src/rx

Modified Files:
	rx.c rx.h rx_globals.h rx_packet.c 
Log Message:
DELTA rx-mutex-interlocked-macros-20080311
AUTHOR jaltman@secure-endpoints.com
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.



--- DELTA config follows ---
rx-mutex-interlocked-macros-20080311 openafs/src/rx/rx.c 1.121 1.122
rx-mutex-interlocked-macros-20080311 openafs/src/rx/rx.h 1.38 1.39
rx-mutex-interlocked-macros-20080311 openafs/src/rx/rx_globals.h 1.29 1.30
rx-mutex-interlocked-macros-20080311 openafs/src/rx/rx_packet.c 1.75 1.76