about summary refs log tree commit diff stats
path: root/src/os/os_linux.c
blob: e4b5b1939c41499f37dcb0a9d4352f3c14885ff6 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#include <sys/syscall.h>
#include <sched.h>
#include <unistd.h>

#include "os.h"

int GetTID(void)
{
    return syscall(SYS_gettid);
}

int SchedYield(void)
{
    return sched_yield();
}