diff options
author | valid-ptr <konstantin.matveyev@eligovision.ru> | 2018-11-27 13:39:03 +0300 |
---|---|---|
committer | Konstantin S. Matveyev <root@zorro.ev> | 2018-11-27 13:41:35 +0300 |
commit | da2a4c3f2160b2a3103609f8c593b4f7af2752d2 (patch) | |
tree | c4a55308fb2e5ea18dda8eb56afb4653b98f19cb /src/threading.h | |
parent | b47776a0e7dc3c784bbd4fb037de34444b72a68d (diff) | |
download | lanes-da2a4c3f2160b2a3103609f8c593b4f7af2752d2.tar.gz lanes-da2a4c3f2160b2a3103609f8c593b4f7af2752d2.tar.bz2 lanes-da2a4c3f2160b2a3103609f8c593b4f7af2752d2.zip |
Threads compilation for Android fixed; Thread can't be killed to date (warning in logcat).
Diffstat (limited to 'src/threading.h')
-rw-r--r-- | src/threading.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/threading.h b/src/threading.h index 8ebe805..063cc82 100644 --- a/src/threading.h +++ b/src/threading.h | |||
@@ -143,7 +143,7 @@ enum e_status { PENDING, RUNNING, WAITING, DONE, ERROR_ST, CANCELLED }; | |||
143 | // | 143 | // |
144 | #if defined( PLATFORM_OSX) | 144 | #if defined( PLATFORM_OSX) |
145 | #define YIELD() pthread_yield_np() | 145 | #define YIELD() pthread_yield_np() |
146 | #elif defined( PLATFORM_WIN32) || defined( PLATFORM_POCKETPC) // no PTHREAD for PLATFORM_XBOX | 146 | #elif defined( PLATFORM_WIN32) || defined( PLATFORM_POCKETPC) || defined(__ANDROID__) // no PTHREAD for PLATFORM_XBOX |
147 | // for some reason win32-pthread doesn't have pthread_yield(), but sched_yield() | 147 | // for some reason win32-pthread doesn't have pthread_yield(), but sched_yield() |
148 | #define YIELD() sched_yield() | 148 | #define YIELD() sched_yield() |
149 | #else | 149 | #else |