Nebula
Loading...
Searching...
No Matches
thread.h
Go to the documentation of this file.
1#pragma once
2//------------------------------------------------------------------------------
12#include "core/config.h"
13#if __WIN32__
15namespace Threading
16{
17class Thread : public Win32::Win32Thread
18{
20};
21}
22#elif __linux__
24namespace Threading
25{
26class Thread : public Linux::LinuxThread
27{
29};
30}
31#elif ( __OSX__ || __APPLE__ )
33namespace Threading
34{
35class Thread : public Posix::PosixThread
36{
38};
39}
40#else
41#error "Threading::Thread not implemented on this platform!"
42#endif
43namespace Threading
44{
46}
47//------------------------------------------------------------------------------
Linux implementation of Threading::Thread.
Definition linuxthread.h:20
Posix implementation of thread class.
Definition posixthread.h:23
Win32 implementation of thread class.
Definition win32thread.h:22
Nebula compiler specific defines and configuration.
The Jobs2 system provides a set of threads and a pool of jobs from which threads can pickup work.
Definition jobs2.h:16
Threading::ThreadId MainThreadId
Definition thread.cc:21
pthread_t ThreadId
Definition linuxthreadid.h:15
#define __DeclareClass(type)