mirror of
https://github.com/Mathewnd/Astral.git
synced 2026-10-27 12:48:22 +00:00
scheduler: use a linked list for threads in a process instead of a table
This commit is contained in:
@@ -46,7 +46,8 @@ syscallret_t syscall_fork(context_t *ctx) {
|
||||
nproc->umask = _cpu()->thread->proc->umask;
|
||||
nproc->root = sched_getroot();
|
||||
nproc->cwd = sched_getcwd();
|
||||
nproc->threads[0] = nthread;
|
||||
nproc->threadlist = nthread;
|
||||
nthread->procnext = NULL;
|
||||
|
||||
ARCH_CONTEXT_THREADSAVE(nthread, ctx);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user