aboutsummaryrefslogtreecommitdiff
path: root/src/libjin/thread/thread.h
diff options
context:
space:
mode:
authorchai <chaifix@163.com>2018-09-08 13:09:06 +0800
committerchai <chaifix@163.com>2018-09-08 13:09:06 +0800
commit4798e70dcbbedb55de8e9f8e321e8fad7b9783f6 (patch)
treef4740d59b561163b260f2f29467cfffdd92c4d9e /src/libjin/thread/thread.h
parent36f7e3e5542f3cfee11b34ce497fcb877b3462bf (diff)
*update
Diffstat (limited to 'src/libjin/thread/thread.h')
-rw-r--r--src/libjin/thread/thread.h18
1 files changed, 9 insertions, 9 deletions
diff --git a/src/libjin/thread/thread.h b/src/libjin/thread/thread.h
index 3300b4f..3c41949 100644
--- a/src/libjin/thread/thread.h
+++ b/src/libjin/thread/thread.h
@@ -1,13 +1,13 @@
-#ifndef __JIN_THREAD_H
-#define __JIN_THREAD_H
+#ifndef __LIBJIN_THREAD_H
+#define __LIBJIN_THREAD_H
#include "../modules.h"
-#if JIN_MODULES_THREAD
+#if LIBJIN_MODULES_THREAD
#include <string>
#include <map>
-#if JIN_THREAD_SDL
+#if LIBJIN_THREAD_SDL
# include "SDL2/SDL_thread.h"
-#elif JIN_THREAD_CPP
+#elif LIBJIN_THREAD_CPP
# include <thread>
# include <mutex>
# include <condition_variable>
@@ -116,9 +116,9 @@ namespace thread
void unlock();
protected:
- #if JIN_THREAD_SDL
+ #if LIBJIN_THREAD_SDL
SDL_Thread* handle; // SDL thread
- #elif JIN_THREAD_CPP
+ #elif LIBJIN_THREAD_CPP
std::thread* handle; // cpp thread
#endif
Mutex* mutex; // mutex variable
@@ -162,5 +162,5 @@ namespace thread
} // thread
} // jin
-#endif // JIN_MODULES_THREAD
-#endif // __JIN_THREAD_H \ No newline at end of file
+#endif // LIBJIN_MODULES_THREAD
+#endif // __LIBJIN_THREAD_H \ No newline at end of file