mirror of
https://github.com/Mathewnd/Astral.git
synced 2026-10-28 05:08:22 +00:00
file: use mutex for locking rather than spinlock
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user