update for HEAD-2003091401
[reactos.git] / ntoskrnl / ke / mutex.c
index b387df5..f540d00 100644 (file)
@@ -37,6 +37,9 @@
 
 /* FUNCTIONS *****************************************************************/
 
+/*
+ * @implemented
+ */
 VOID STDCALL
 KeInitializeMutex(IN PKMUTEX Mutex,
                  IN ULONG Level)
@@ -52,12 +55,18 @@ KeInitializeMutex(IN PKMUTEX Mutex,
   Mutex->ApcDisable = 1;
 }
 
+/*
+ * @implemented
+ */
 LONG STDCALL
 KeReadStateMutex(IN PKMUTEX Mutex)
 {
   return(Mutex->Header.SignalState);
 }
 
+/*
+ * @implemented
+ */
 LONG STDCALL
 KeReleaseMutex(IN PKMUTEX Mutex,
               IN BOOLEAN Wait)
@@ -66,7 +75,7 @@ KeReleaseMutex(IN PKMUTEX Mutex,
   if (Mutex->OwnerThread != KeGetCurrentThread())
     {
       DbgPrint("THREAD_NOT_MUTEX_OWNER: Mutex %p\n", Mutex);
-      KeBugCheck(0); /* THREAD_NOT_MUTEX_OWNER */
+      KEBUGCHECK(0); /* THREAD_NOT_MUTEX_OWNER */
     }
   Mutex->Header.SignalState++;
   assert(Mutex->Header.SignalState <= 1);
@@ -81,6 +90,9 @@ KeReleaseMutex(IN PKMUTEX Mutex,
   return(0);
 }
 
+/*
+ * @implemented
+ */
 NTSTATUS STDCALL
 KeWaitForMutexObject(IN PKMUTEX Mutex,
                     IN KWAIT_REASON WaitReason,
@@ -92,6 +104,9 @@ KeWaitForMutexObject(IN PKMUTEX Mutex,
 }
 
 
+/*
+ * @implemented
+ */
 VOID STDCALL
 KeInitializeMutant(IN PKMUTANT Mutant,
                   IN BOOLEAN InitialOwner)
@@ -120,12 +135,18 @@ KeInitializeMutant(IN PKMUTANT Mutant,
   Mutant->ApcDisable = 0;
 }
 
+/*
+ * @implemented
+ */
 LONG STDCALL
 KeReadStateMutant(IN PKMUTANT Mutant)
 {
   return(Mutant->Header.SignalState);
 }
 
+/*
+ * @implemented
+ */
 LONG STDCALL
 KeReleaseMutant(IN PKMUTANT Mutant,
                IN KPRIORITY Increment,
@@ -140,7 +161,7 @@ KeReleaseMutant(IN PKMUTANT Mutant,
          DbgPrint("THREAD_NOT_MUTEX_OWNER: Mutant->OwnerThread %p CurrentThread %p\n",
                   Mutant->OwnerThread,
                   KeGetCurrentThread());
-         KeBugCheck(0); /* THREAD_NOT_MUTEX_OWNER */
+         KEBUGCHECK(0); /* THREAD_NOT_MUTEX_OWNER */
        }
       Mutant->Header.SignalState++;
       assert(Mutant->Header.SignalState <= 1);