mirror of
https://github.com/reactos/reactos.git
synced 2024-10-02 07:26:47 +00:00
Fixed thread termination bug when a mutex must be abandoned.
svn path=/trunk/; revision=2360
This commit is contained in:
parent
a122417a8a
commit
7ab413e8de
|
@ -1,4 +1,4 @@
|
||||||
/* $Id: kill.c,v 1.49 2001/11/07 22:36:47 dwelch Exp $
|
/* $Id: kill.c,v 1.50 2001/11/08 01:09:20 ekohl Exp $
|
||||||
*
|
*
|
||||||
* COPYRIGHT: See COPYING in the top level directory
|
* COPYRIGHT: See COPYING in the top level directory
|
||||||
* PROJECT: ReactOS kernel
|
* PROJECT: ReactOS kernel
|
||||||
|
@ -141,6 +141,7 @@ PsTerminateCurrentThread(NTSTATUS ExitStatus)
|
||||||
CurrentThread->ExitStatus = ExitStatus;
|
CurrentThread->ExitStatus = ExitStatus;
|
||||||
Thread = KeGetCurrentThread();
|
Thread = KeGetCurrentThread();
|
||||||
KeCancelTimer(&Thread->Timer);
|
KeCancelTimer(&Thread->Timer);
|
||||||
|
KeReleaseSpinLock(&PiThreadListLock, oldIrql);
|
||||||
|
|
||||||
/* abandon all owned mutants */
|
/* abandon all owned mutants */
|
||||||
current_entry = Thread->MutantListHead.Flink;
|
current_entry = Thread->MutantListHead.Flink;
|
||||||
|
@ -154,7 +155,6 @@ PsTerminateCurrentThread(NTSTATUS ExitStatus)
|
||||||
FALSE);
|
FALSE);
|
||||||
current_entry = Thread->MutantListHead.Flink;
|
current_entry = Thread->MutantListHead.Flink;
|
||||||
}
|
}
|
||||||
KeReleaseSpinLock(&PiThreadListLock, oldIrql);
|
|
||||||
|
|
||||||
KeAcquireDispatcherDatabaseLock(FALSE);
|
KeAcquireDispatcherDatabaseLock(FALSE);
|
||||||
CurrentThread->Tcb.DispatcherHeader.SignalState = TRUE;
|
CurrentThread->Tcb.DispatcherHeader.SignalState = TRUE;
|
||||||
|
|
Loading…
Reference in a new issue