CX Framework
Cross-platform C utility framework
Loading...
Searching...
No Matches
os.h
Go to the documentation of this file.
1#pragma once
2
5
39
40#include <cx/cx.h>
41#include <cx/platform/base.h>
42
43#if defined(_PLATFORM_WIN)
44#include <cx/platform/win/win_os.h>
45#elif defined(_PLATFORM_UNIX)
46#include <cx/platform/unix/unix_os.h>
47#elif defined(_PLATFORM_WASM)
48#include <cx/platform/wasm/wasm_os.h>
49#endif
50
55void osYield();
56
63void osSleep(int64 time);
64
72
80
92bool osGenRandom(uint8* buffer, uint32 size);
93
94
Compiler and platform detection macros.
bool osGenRandom(uint8 *buffer, uint32 size)
int osPhysicalCPUs()
int osLogicalCPUs()
void osSleep(int64 time)
void osYield()