ExGetExclusiveWaiterCount routine

The ExGetExclusiveWaiterCount routine returns the number of waiters on exclusive access to a given resource.

Syntax


ULONG ExGetExclusiveWaiterCount(
  _In_ PERESOURCE Resource
);

Parameters

Resource [in]

A pointer to the resource to be tested.

Return value

ExGetExclusiveWaiterCount returns the number of threads currently waiting to acquire the given resource for exclusive access.

Remarks

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.

Requirements

Target platform

Universal

Version

Available starting with Windows 2000.

Header

Wdm.h (include Wdm.h, Ntddk.h, or Ntifs.h)

Library

NtosKrnl.lib

DLL

NtosKrnl.exe

IRQL

<= DISPATCH_LEVEL

DDI compliance rules

HwStorPortProhibitedDDIs

See also

ExAcquireResourceExclusiveLite
ExAcquireResourceSharedLite
ExAcquireSharedStarveExclusive
ExAcquireSharedWaitForExclusive
ExGetSharedWaiterCount
ExReleaseResourceForThreadLite

 

 

Send comments about this topic to Microsoft

Show: