diff options
author | chai <chaifix@163.com> | 2018-10-21 16:21:16 +0800 |
---|---|---|
committer | chai <chaifix@163.com> | 2018-10-21 16:21:16 +0800 |
commit | 07770f3ad369ff47386310b731d349f7af1fe0d9 (patch) | |
tree | 7547b1a8b2beaceb31ea1b62edbdaa5cd6a1b247 /src/libjin/multithread/je_thread.h | |
parent | 066e5987c515dfc34537d73ca9d2a81ddd1f9e1b (diff) |
*修改编译控制
Diffstat (limited to 'src/libjin/multithread/je_thread.h')
-rw-r--r-- | src/libjin/multithread/je_thread.h | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/libjin/multithread/je_thread.h b/src/libjin/multithread/je_thread.h index b3a3e2e..353690c 100644 --- a/src/libjin/multithread/je_thread.h +++ b/src/libjin/multithread/je_thread.h @@ -1,13 +1,13 @@ #ifndef __JE_THREAD_H #define __JE_THREAD_H #include "../core/je_configuration.h" -#if LIBJIN_MODULES_THREAD +#if defined(jin_thread) #include <string> #include <map> -#if LIBJIN_THREAD_SDL +#if jin_thread == jin_thread_sdl #include "SDL2/SDL_thread.h" -#elif LIBJIN_THREAD_CPP +#elif jin_thread == jin_thread_cpp #include <thread> #include <mutex> #include <condition_variable> @@ -116,9 +116,9 @@ namespace JinEngine void unlock(); protected: - #if LIBJIN_THREAD_SDL + #if jin_thread == jin_thread_sdl SDL_Thread* handle; // SDL thread - #elif LIBJIN_THREAD_CPP + #elif jin_thread == jin_thread_cpp std::thread* handle; // cpp thread #endif Mutex* mutex; // mutex variable @@ -162,6 +162,6 @@ namespace JinEngine } // namespace MultiThread } // namespace JinEngine -#endif // LIBJIN_MODULES_THREAD +#endif // defined(jin_thread) #endif // __JE_THREAD_H
\ No newline at end of file |