Hardware Dev Center

CcWaitForCurrentLazyWriterActivity routine

The CcWaitForCurrentLazyWriterActivity routine puts the caller into a wait state until the current batch of lazy writer activity is completed.

Syntax


NTSTATUS CcWaitForCurrentLazyWriterActivity(void);

Parameters

This routine has no parameters.

Return value

CcWaitForCurrentLazyWriterActivity can return one of the following NTSTATUS values:

STATUS_SUCCESS
STATUS_INSUFFICIENT_RESOURCES

Remarks

CcWaitForCurrentLazyWriterActivity puts the calling thread into a wait state until all work items currently in the lazy writer (read ahead or write behind) work queue have completed.

To prevent deadlock, the caller should release any currently held synchronization objects before calling CcWaitForCurrentLazyWriterActivity.

Requirements

Target platform

Universal

Version

Available on Microsoft Windows 2000 and later.

Header

Ntifs.h (include Ntifs.h)

Library

NtosKrnl.lib

DLL

NtosKrnl.exe

See also

CcInitializeCacheMap
CcReadAhead
CcSetAdditionalCacheAttributes
CcSetReadAheadGranularity

 

 

Send comments about this topic to Microsoft

Show:
© 2015 Microsoft