X-Git-Url: http://git.jankratochvil.net/?p=reactos.git;a=blobdiff_plain;f=ntoskrnl%2Fke%2Fmutex.c;h=f540d00679c8f6b3dc73779c902de10b8b11e656;hp=b387df56c02488e802a7a1471d9749d4970772fa;hb=HEAD;hpb=7c0db166f81fbe8c8b913d7f26048e337d383605 diff --git a/ntoskrnl/ke/mutex.c b/ntoskrnl/ke/mutex.c index b387df5..f540d00 100644 --- a/ntoskrnl/ke/mutex.c +++ b/ntoskrnl/ke/mutex.c @@ -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);