file: use mutex for locking rather than spinlock

This commit is contained in:
Matheus
2024-05-07 18:52:05 -03:00
parent 3ada71ec1d
commit f2f7a629cc
3 changed files with 14 additions and 13 deletions
+1 -1
View File
@@ -54,7 +54,7 @@ proc_t *sched_newproc() {
proc->fdcount = 3;
proc->refcount = 1;
proc->fdfirst = 3;
SPINLOCK_INIT(proc->fdlock);
MUTEX_INIT(&proc->fdmutex);
SEMAPHORE_INIT(&proc->waitsem, 0);
SPINLOCK_INIT(proc->jobctllock);
SPINLOCK_INIT(proc->pgrp.lock);