[DDK]
authorPierre Schweitzer <pierre@reactos.org>
Wed, 26 Jul 2017 19:57:50 +0000 (19:57 +0000)
committerPierre Schweitzer <pierre@reactos.org>
Wed, 26 Jul 2017 19:57:50 +0000 (19:57 +0000)
Define RxIsFcbTableLockAcquired

CORE-8204
CORE-11327
CORE-13581

svn path=/trunk/; revision=75414

reactos/sdk/include/ddk/fcbtable.h

index f8dc7f2..0cb5087 100644 (file)
@@ -57,6 +57,9 @@ RxFcbTableRemoveFcb(
 
 #define RxIsFcbTableLockExclusive(T) ExIsResourceAcquiredExclusiveLite(&(T)->TableLock)
 
+#define RxIsFcbTableLockAcquired(T) (ExIsResourceAcquiredSharedLite(&(T)->TableLock) ||  \
+                                    ExIsResourceAcquiredExclusiveLite(&(T)->TableLock))
+
 #ifdef __REACTOS__
 #define FCB_HASH_BUCKET(T, H) &(T)->HashBuckets[H % (T)->NumberOfBuckets]
 #endif