about summary refs log tree commit diff stats
path: root/src/os/os_linux.c
diff options
context:
space:
mode:
authorYang Liu <liuyang22@iscas.ac.cn>2025-04-02 03:12:15 +0800
committerGitHub <noreply@github.com>2025-04-01 21:12:15 +0200
commitb68d46311dba9c410ed5a9339d396486958d1e5b (patch)
tree7ca6fde3ea581df1f705b927a06a21da132c90b0 /src/os/os_linux.c
parent2c7a2082e624a78e42199d90f7d9fa90473c26c2 (diff)
downloadbox64-b68d46311dba9c410ed5a9339d396486958d1e5b.tar.gz
box64-b68d46311dba9c410ed5a9339d396486958d1e5b.zip
Moved more OS-dependent functions to os.h (#2491)
Diffstat (limited to 'src/os/os_linux.c')
-rw-r--r--src/os/os_linux.c10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/os/os_linux.c b/src/os/os_linux.c
index bfa6d6c4..e4b5b193 100644
--- a/src/os/os_linux.c
+++ b/src/os/os_linux.c
@@ -1,7 +1,15 @@
 #include <sys/syscall.h>
+#include <sched.h>
 #include <unistd.h>
 
-int GetTID()
+#include "os.h"
+
+int GetTID(void)
 {
     return syscall(SYS_gettid);
 }
+
+int SchedYield(void)
+{
+    return sched_yield();
+}