mirror of
https://github.com/Mathewnd/Astral.git
synced 2026-10-27 12:48:22 +00:00
file: use mutex for locking rather than spinlock
This commit is contained in:
@@ -6,6 +6,7 @@
|
||||
#include <kernel/abi.h>
|
||||
#include <kernel/vfs.h>
|
||||
#include <semaphore.h>
|
||||
#include <mutex.h>
|
||||
|
||||
#define SCHED_THREAD_FLAGS_QUEUED 1
|
||||
#define SCHED_THREAD_FLAGS_RUNNING 2
|
||||
@@ -64,7 +65,7 @@ typedef struct proc_t {
|
||||
size_t runningthreadcount;
|
||||
size_t fdcount;
|
||||
uintmax_t fdfirst;
|
||||
spinlock_t fdlock;
|
||||
mutex_t fdmutex;
|
||||
struct fd_t *fd;
|
||||
mode_t umask;
|
||||
int flags;
|
||||
|
||||
Reference in New Issue
Block a user