feat: Symmetric Multiprocessing, text editor improvements, merge doom libc, implement math functions
This commit is contained in:
1 parent
937d29471b
commit
41ad1f6404
46 files changed
+3004
-2404
No files matched your search
@@ -26,7 +26,7 @@ namespace Montauk {
|
||||
}
|
||||
|
||||
static void Sys_SleepMs(uint64_t ms) {
|
||||
Timekeeping::Sleep(ms);
|
||||
Sched::BlockForSleep(ms);
|
||||
}
|
||||
|
||||
static int Sys_GetPid() {
|
||||
@@ -34,9 +34,7 @@ namespace Montauk {
|
||||
}
|
||||
|
||||
static void Sys_WaitPid(int pid) {
|
||||
while (Sched::IsAlive(pid)) {
|
||||
Sched::Schedule(); // yield until the process exits
|
||||
}
|
||||
Sched::BlockOnPid(pid);
|
||||
}
|
||||
|
||||
static int Sys_Spawn(const char* path, const char* args) {
|
||||
|
||||
Reference in new issue
Block a user