ULONG
ExGetExclusiveWaiterCount(
IN PERESOURCE Resource
);
ExGetExclusiveWaiterCount returns the number of waiters on exclusive access to a given resource.
ExGetExclusiveWaiterCount returns the number of threads currently waiting to acquire the given resource for exclusive access.
ExGetExclusiveWaiterCount can be called to get an estimate of how many other threads might be waiting to modify the data protected by a particular resource variable. The caller cannot assume that the returned value remains constant for any particular interval.
Callers of ExGetExclusiveWaiterCount can be running at IRQL <= DISPATCH_LEVEL.
ExAcquireResourceExclusiveLite, ExAcquireResourceSharedLite, ExAcquireSharedStarveExclusive, ExAcquireSharedWaitForExclusive, ExGetSharedWaiterCount, ExReleaseResourceForThreadLite