* - List for deferred writes
* - Spinlock when dealing with the deferred list
* - List for "clean" shared cache maps
+ * - One second delay for lazy writer
*/
ULONG CcDirtyPageThreshold = 0;
ULONG CcTotalDirtyPages = 0;
LIST_ENTRY CcDeferredWrites;
KSPIN_LOCK CcDeferredWriteSpinLock;
LIST_ENTRY CcCleanSharedCacheMapList;
+#ifndef _MSC_VER
+LARGE_INTEGER CcIdleDelay = {.QuadPart = (LONGLONG)-1*1000*1000*10};
+#else
+LARGE_INTEGER CcIdleDelay = {(LONGLONG)-1*1000*1000*10};
+#endif
/* Internal vars (ROS):
* - Event to notify lazy writer to shutdown
NTAPI
CciLazyWriter(PVOID Unused)
{
- LARGE_INTEGER OneSecond;
-
- OneSecond.QuadPart = (LONGLONG)-1*1000*1000*10;
-
while (TRUE)
{
NTSTATUS Status;
Executive,
KernelMode,
FALSE,
- &OneSecond);
+ &CcIdleDelay);
/* If we succeeed, we've to stop running! */
if (Status == STATUS_SUCCESS)