mirror of
https://git.openafs.org/openafs.git
synced 2025-01-31 13:38:01 +00:00
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:
parent
76e33082d1
commit
dd73c9c1ef
@ -74,11 +74,11 @@
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifndef SetFlag
|
#ifndef SetFlag
|
||||||
#define SetFlag(_F,_SF) ((_F) |= (_SF))
|
#define SetFlag(_F,_SF) InterlockedOr(&(_F), (_SF))
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifndef ClearFlag
|
#ifndef ClearFlag
|
||||||
#define ClearFlag(_F,_SF) ((_F) &= ~(_SF))
|
#define ClearFlag(_F,_SF) InterlockedAnd(&(_F), ~(_SF))
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#define QuadAlign(Ptr) ( \
|
#define QuadAlign(Ptr) ( \
|
||||||
|
@ -218,11 +218,11 @@ NTSTATUS
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifndef SetFlag
|
#ifndef SetFlag
|
||||||
#define SetFlag(_F,_SF) ((_F) |= (_SF))
|
#define SetFlag(_F,_SF) InterlockedOr(&(_F), (_SF))
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifndef ClearFlag
|
#ifndef ClearFlag
|
||||||
#define ClearFlag(_F,_SF) ((_F) &= ~(_SF))
|
#define ClearFlag(_F,_SF) InterlockedAnd(&(_F), ~(_SF))
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#define QuadAlign(Ptr) ( \
|
#define QuadAlign(Ptr) ( \
|
||||||
|
Loading…
x
Reference in New Issue
Block a user