Windows: Switch to Interlocked ops for RDR Set/Clear

Switch to using interlocked operations for the SetFlag and ClearFlag
macros.

Change-Id: I2b071ae49f69d557c30d1280fb7877dde7f76f40
Reviewed-on: http://gerrit.openafs.org/9722
Reviewed-by: Peter Scott <pscott@kerneldrivers.com>
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-by: Jeffrey Altman <jaltman@your-file-system.com>
Tested-by: Jeffrey Altman <jaltman@your-file-system.com>
This commit is contained in:
Jeffrey Altman 2013-04-03 23:33:40 -04:00
parent 76e33082d1
commit dd73c9c1ef
2 changed files with 4 additions and 4 deletions

View File

@ -74,11 +74,11 @@
#endif
#ifndef SetFlag
#define SetFlag(_F,_SF) ((_F) |= (_SF))
#define SetFlag(_F,_SF) InterlockedOr(&(_F), (_SF))
#endif
#ifndef ClearFlag
#define ClearFlag(_F,_SF) ((_F) &= ~(_SF))
#define ClearFlag(_F,_SF) InterlockedAnd(&(_F), ~(_SF))
#endif
#define QuadAlign(Ptr) ( \

View File

@ -218,11 +218,11 @@ NTSTATUS
#endif
#ifndef SetFlag
#define SetFlag(_F,_SF) ((_F) |= (_SF))
#define SetFlag(_F,_SF) InterlockedOr(&(_F), (_SF))
#endif
#ifndef ClearFlag
#define ClearFlag(_F,_SF) ((_F) &= ~(_SF))
#define ClearFlag(_F,_SF) InterlockedAnd(&(_F), ~(_SF))
#endif
#define QuadAlign(Ptr) ( \