return(TRUE);
}
-#ifndef LIBCAPTIVE
-
VOID
STDCALL
ExConvertExclusiveToSharedLite (
KeReleaseSpinLock(&Resource->SpinLock, oldIrql);
return;
}
+#ifndef LIBCAPTIVE
/* else, awake the waiters */
KeReleaseSemaphore(Resource->SharedWaiters,0,oldWaiters,0);
KeReleaseSpinLock(&Resource->SpinLock, oldIrql);
DPRINT("ExConvertExclusiveToSharedLite() finished\n");
+#else /* !LIBCAPTIVE */
+ /* no waiters allower for libcaptive */
+ KeBugCheck(0);
+#endif /* LIBCAPTIVE */
}
+#ifndef LIBCAPTIVE
+
VOID
STDCALL
ExDisableResourceBoostLite (
Resource->Flag |= ResourceDisableBoost;
}
+#endif /* LIBCAPTIVE */
+
ULONG
STDCALL
ExGetExclusiveWaiterCount (
return(Resource->NumberOfExclusiveWaiters);
}
-#endif /* LIBCAPTIVE */
BOOLEAN
STDCALL
return(TRUE);
}
-#ifndef LIBCAPTIVE
BOOLEAN
STDCALL
return(ExAcquireResourceSharedLite(Resource,Wait));
}
+#ifndef LIBCAPTIVE
+
NTSTATUS
STDCALL
ExDeleteResource (
return(STATUS_SUCCESS);;
}
-#ifndef LIBCAPTIVE
ULONG
STDCALL
return(Resource->NumberOfSharedWaiters);
}
+#ifndef LIBCAPTIVE
+
NTSTATUS
STDCALL
ExInitializeResource (
return(0);
}
-#ifndef LIBCAPTIVE
VOID
STDCALL
Resource->OwnerThreads[1].a.OwnerCount=0;
}
-#endif /* LIBCAPTIVE */
VOID
FASTCALL