Always create threads in CREATED state.
Simplify the process class to have threads marked as runnable separately.
This commit is contained in:
parent
ef8eb5d993
commit
b0c2a6732b
4 changed files with 7 additions and 13 deletions
|
|
@ -6,6 +6,7 @@
|
|||
#include "memory/paging_util.h"
|
||||
#include "scheduler/process.h"
|
||||
#include "scheduler/process_manager.h"
|
||||
#include "scheduler/thread.h"
|
||||
|
||||
namespace {
|
||||
|
||||
|
|
@ -58,5 +59,5 @@ void LoadInitProgram() {
|
|||
prog2.size, *proc,
|
||||
proc->vmm().GetNextMemMapAddr(prog2.size));
|
||||
|
||||
proc->CreateThread(entry);
|
||||
proc->CreateThread()->Start(entry, 0, 0);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue