Nebula
Loading...
Searching...
No Matches
posixcpu.h
Go to the documentation of this file.
1#pragma once
2#ifndef POSIX_POSIXCPU_H
3#define POSIX_POSIXCPU_H
4//------------------------------------------------------------------------------
13#include "core/types.h"
14
15//------------------------------------------------------------------------------
16namespace Posix
17{
19{
20public:
21 typedef int CoreId;
22
24 static const CoreId InvalidCoreId = 0xffffffff;
25 static const CoreId MainThreadCore = 0;
26 static const CoreId IoThreadCore = 2;
27 static const CoreId RenderThreadCore = 1;
28 static const CoreId AudioThreadCore = 3;
29 static const CoreId MiscThreadCore = 4;
30 static const CoreId NetworkThreadCore = 5;
31
32 static const CoreId JobThreadFirstCore = 6;
33 static const CoreId RenderThreadFirstCore = 16;
34};
35
36} // namespace Posix
37//------------------------------------------------------------------------------
38#endif
CPU related definitions for the Posix platform.
Definition posixcpu.h:19
static const CoreId MainThreadCore
Definition posixcpu.h:25
static const CoreId MiscThreadCore
Definition posixcpu.h:29
static const CoreId RenderThreadCore
Definition posixcpu.h:27
static const CoreId IoThreadCore
Definition posixcpu.h:26
static const CoreId RenderThreadFirstCore
Definition posixcpu.h:33
static const CoreId AudioThreadCore
Definition posixcpu.h:28
static const CoreId JobThreadFirstCore
Definition posixcpu.h:32
static const CoreId NetworkThreadCore
Definition posixcpu.h:30
static const CoreId InvalidCoreId
core identifiers, under Posix, we basically don't care...
Definition posixcpu.h:24
int CoreId
Definition posixcpu.h:21
Posix implemention of a read-many write-few lock.
Definition posixsysfunc.cc:21