Removing excess logging and improve semaphore debugging
This commit is contained in:
parent
ccebc2fe60
commit
359d55f53c
@ -102,7 +102,11 @@ Debug_Semaphores(int argc, const char *argv[])
|
||||
kprintf("%-36s Count\n", "Lock Name");
|
||||
LIST_FOREACH(sema, &semaList, semaphoreList)
|
||||
{
|
||||
Thread *thr;
|
||||
kprintf("%-36s %8d\n", sema->name, sema->count);
|
||||
TAILQ_FOREACH(thr, &sema->waiters, semaQueue) {
|
||||
kprintf("waiting: %d:%d\n", thr->proc->pid, thr->tid);
|
||||
}
|
||||
}
|
||||
|
||||
Spinlock_Unlock(&semaListLock);
|
||||
|
@ -206,7 +206,6 @@ Process_Wait(Process *proc, uint64_t pid)
|
||||
|
||||
// Release threads
|
||||
TAILQ_FOREACH_SAFE(thr, &p->zombieQueue, schedQueue, thr_temp) {
|
||||
Thread_Dump(thr);
|
||||
Thread_Release(thr);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user