aboutsummaryrefslogtreecommitdiff
path: root/vendor/libc-shim/include/sched.h
blob: 6e43975366aa308f8ef8d5338b2d8494c31f495e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#ifdef __cplusplus
extern "C" {
#endif

#pragma once

#include <stdint.h>

#define CLOCK_MONOTONIC 1

struct timespec
{
    int64_t tv_sec;
    int64_t tv_nsec;
};

int clock_gettime(int clockid, struct timespec *tp);

int sched_yield();

#ifdef __cplusplus
}
#endif