mirror of
https://github.com/reactos/reactos.git
synced 2025-08-06 09:43:04 +00:00
Release PiThreadListLock as soon as possible
svn path=/trunk/; revision=6202
This commit is contained in:
parent
3df2c8544f
commit
960aa79c36
1 changed files with 2 additions and 2 deletions
|
@ -1,4 +1,4 @@
|
||||||
/* $Id: thread.c,v 1.117 2003/08/20 15:02:53 ea Exp $
|
/* $Id: thread.c,v 1.118 2003/09/30 22:36:29 gvg Exp $
|
||||||
*
|
*
|
||||||
* COPYRIGHT: See COPYING in the top level directory
|
* COPYRIGHT: See COPYING in the top level directory
|
||||||
* PROJECT: ReactOS kernel
|
* PROJECT: ReactOS kernel
|
||||||
|
@ -811,9 +811,9 @@ PsLookupThreadByThreadId(IN PVOID ThreadId,
|
||||||
Tcb.ThreadListEntry);
|
Tcb.ThreadListEntry);
|
||||||
if (current->Cid.UniqueThread == (HANDLE)ThreadId)
|
if (current->Cid.UniqueThread == (HANDLE)ThreadId)
|
||||||
{
|
{
|
||||||
|
KeReleaseSpinLock(&PiThreadListLock, oldIrql);
|
||||||
*Thread = current;
|
*Thread = current;
|
||||||
ObReferenceObject(current);
|
ObReferenceObject(current);
|
||||||
KeReleaseSpinLock(&PiThreadListLock, oldIrql);
|
|
||||||
return(STATUS_SUCCESS);
|
return(STATUS_SUCCESS);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue