git://git.jankratochvil.net
/
reactos.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
update for HEAD-2003091401
[reactos.git]
/
ntoskrnl
/
ke
/
mutex.c
diff --git
a/ntoskrnl/ke/mutex.c
b/ntoskrnl/ke/mutex.c
index
b387df5
..
f540d00
100644
(file)
--- a/
ntoskrnl/ke/mutex.c
+++ b/
ntoskrnl/ke/mutex.c
@@
-37,6
+37,9
@@
/* FUNCTIONS *****************************************************************/
/* FUNCTIONS *****************************************************************/
+/*
+ * @implemented
+ */
VOID STDCALL
KeInitializeMutex(IN PKMUTEX Mutex,
IN ULONG Level)
VOID STDCALL
KeInitializeMutex(IN PKMUTEX Mutex,
IN ULONG Level)
@@
-52,12
+55,18
@@
KeInitializeMutex(IN PKMUTEX Mutex,
Mutex->ApcDisable = 1;
}
Mutex->ApcDisable = 1;
}
+/*
+ * @implemented
+ */
LONG STDCALL
KeReadStateMutex(IN PKMUTEX Mutex)
{
return(Mutex->Header.SignalState);
}
LONG STDCALL
KeReadStateMutex(IN PKMUTEX Mutex)
{
return(Mutex->Header.SignalState);
}
+/*
+ * @implemented
+ */
LONG STDCALL
KeReleaseMutex(IN PKMUTEX Mutex,
IN BOOLEAN Wait)
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);
if (Mutex->OwnerThread != KeGetCurrentThread())
{
DbgPrint("THREAD_NOT_MUTEX_OWNER: Mutex %p\n", Mutex);
- K
eBugCheck
(0); /* THREAD_NOT_MUTEX_OWNER */
+ K
EBUGCHECK
(0); /* THREAD_NOT_MUTEX_OWNER */
}
Mutex->Header.SignalState++;
assert(Mutex->Header.SignalState <= 1);
}
Mutex->Header.SignalState++;
assert(Mutex->Header.SignalState <= 1);
@@
-81,6
+90,9
@@
KeReleaseMutex(IN PKMUTEX Mutex,
return(0);
}
return(0);
}
+/*
+ * @implemented
+ */
NTSTATUS STDCALL
KeWaitForMutexObject(IN PKMUTEX Mutex,
IN KWAIT_REASON WaitReason,
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)
VOID STDCALL
KeInitializeMutant(IN PKMUTANT Mutant,
IN BOOLEAN InitialOwner)
@@
-120,12
+135,18
@@
KeInitializeMutant(IN PKMUTANT Mutant,
Mutant->ApcDisable = 0;
}
Mutant->ApcDisable = 0;
}
+/*
+ * @implemented
+ */
LONG STDCALL
KeReadStateMutant(IN PKMUTANT Mutant)
{
return(Mutant->Header.SignalState);
}
LONG STDCALL
KeReadStateMutant(IN PKMUTANT Mutant)
{
return(Mutant->Header.SignalState);
}
+/*
+ * @implemented
+ */
LONG STDCALL
KeReleaseMutant(IN PKMUTANT Mutant,
IN KPRIORITY Increment,
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());
DbgPrint("THREAD_NOT_MUTEX_OWNER: Mutant->OwnerThread %p CurrentThread %p\n",
Mutant->OwnerThread,
KeGetCurrentThread());
- K
eBugCheck
(0); /* THREAD_NOT_MUTEX_OWNER */
+ K
EBUGCHECK
(0); /* THREAD_NOT_MUTEX_OWNER */
}
Mutant->Header.SignalState++;
assert(Mutant->Header.SignalState <= 1);
}
Mutant->Header.SignalState++;
assert(Mutant->Header.SignalState <= 1);