Bewerken

Delen via


ExGetSharedWaiterCount function (wdm.h)

The ExGetSharedWaiterCount routine returns the number of waiters on shared access to a given resource.

Syntax

ULONG ExGetSharedWaiterCount(
  [in] PERESOURCE Resource
);

Parameters

[in] Resource

A pointer to the resource to be tested.

Return value

ExGetSharedWaiterCount returns the number of threads currently waiting to acquire the given resource for shared access.

Remarks

ExGetSharedWaiterCount can be called to get an estimate of how many other threads might be waiting to read the data protected by a particular resource variable. The caller cannot assume that the returned value remains constant for any particular interval.

Requirements

Requirement Value
Minimum supported client Available starting with Windows 2000.
Target Platform Universal
Header wdm.h (include Wdm.h, Ntddk.h, Ntifs.h)
Library NtosKrnl.lib
DLL NtosKrnl.exe
IRQL <= DISPATCH_LEVEL
DDI compliance rules HwStorPortProhibitedDDIs(storport)

See also

ExAcquireResourceExclusiveLite

ExAcquireResourceSharedLite

ExAcquireSharedStarveExclusive

ExAcquireSharedWaitForExclusive

ExGetExclusiveWaiterCount

ExReleaseResourceForThreadLite