Fixed remainingcalls to ObGetReferenceCount() and ObGetHandleCount().

svn path=/trunk/; revision=2673
This commit is contained in:
Eric Kohl 2002-03-05 11:33:12 +00:00
parent 8532827baf
commit 3783d01bf9

View file

@ -1,4 +1,4 @@
/* $Id: kill.c,v 1.50 2001/11/08 01:09:20 ekohl Exp $ /* $Id: kill.c,v 1.51 2002/03/05 11:33:12 ekohl Exp $
* *
* COPYRIGHT: See COPYING in the top level directory * COPYRIGHT: See COPYING in the top level directory
* PROJECT: ReactOS kernel * PROJECT: ReactOS kernel
@ -101,7 +101,7 @@ PsReapThreads(VOID)
DPRINT("PsProcessType %x\n", PsProcessType); DPRINT("PsProcessType %x\n", PsProcessType);
DPRINT("Reaping thread %x\n", current); DPRINT("Reaping thread %x\n", current);
DPRINT("Ref count %d\n", ObGetReferenceCount(Process)); DPRINT("Pointer count %d\n", ObGetObjectPointerCount(Process));
current->Tcb.State = THREAD_STATE_TERMINATED_2; current->Tcb.State = THREAD_STATE_TERMINATED_2;
RemoveEntryList(&current->Tcb.ProcessThreadListEntry); RemoveEntryList(&current->Tcb.ProcessThreadListEntry);
if (IsListEmpty(&Process->ThreadListHead)) if (IsListEmpty(&Process->ThreadListHead))
@ -111,7 +111,7 @@ PsReapThreads(VOID)
PiTerminateProcess(Process, Status); PiTerminateProcess(Process, Status);
KeAcquireSpinLock( &PiThreadListLock, &oldIrql ); KeAcquireSpinLock( &PiThreadListLock, &oldIrql );
} }
DPRINT("Ref count %d\n", ObGetReferenceCount(Process)); DPRINT("Pointer count %d\n", ObGetObjectPointerCount(Process));
KeReleaseSpinLock(&PiThreadListLock, oldIrql); KeReleaseSpinLock(&PiThreadListLock, oldIrql);
ObDereferenceObject(current); ObDereferenceObject(current);
KeAcquireSpinLock(&PiThreadListLock, &oldIrql); KeAcquireSpinLock(&PiThreadListLock, &oldIrql);
@ -224,9 +224,9 @@ NTSTATUS STDCALL
PiTerminateProcess(PEPROCESS Process, PiTerminateProcess(PEPROCESS Process,
NTSTATUS ExitStatus) NTSTATUS ExitStatus)
{ {
DPRINT("PiTerminateProcess(Process %x, ExitStatus %x) RC %d HC %d\n", DPRINT("PiTerminateProcess(Process %x, ExitStatus %x) PC %d HC %d\n",
Process, ExitStatus, ObGetReferenceCount(Process), Process, ExitStatus, ObGetObjectPointerCount(Process),
ObGetHandleCount(Process)); ObGetObjectHandleCount(Process));
if (InterlockedExchange((PLONG)&Process->Pcb.State, if (InterlockedExchange((PLONG)&Process->Pcb.State,
PROCESS_STATE_TERMINATED) == PROCESS_STATE_TERMINATED) ==