Initial pass on renaming project code to lime
This commit is contained in:
32
project/include/LimeThread.h
Normal file
32
project/include/LimeThread.h
Normal file
@@ -0,0 +1,32 @@
|
||||
#ifndef LIME_THREAD_H
|
||||
#define LIME_THREAD_H
|
||||
|
||||
#ifndef HX_WINDOWS
|
||||
#ifndef EPPC
|
||||
#include <pthread.h>
|
||||
#endif
|
||||
#else
|
||||
#include <windows.h>
|
||||
#undef min
|
||||
#undef max
|
||||
#endif
|
||||
|
||||
namespace lime
|
||||
{
|
||||
#ifndef HX_WINDOWS
|
||||
#ifdef EPPC
|
||||
typedef int ThreadId;
|
||||
#else
|
||||
typedef pthread_t ThreadId;
|
||||
#endif
|
||||
#else
|
||||
typedef DWORD ThreadId;
|
||||
#endif
|
||||
|
||||
ThreadId GetThreadId();
|
||||
bool IsMainThread();
|
||||
void SetMainThread();
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user