diff options
author | Benoit Germain <bnt.germain@gmail.com> | 2021-06-16 14:15:13 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-06-16 14:15:13 +0200 |
commit | e3cabe58aa63ef648e04dde1b634b3654d0df9ae (patch) | |
tree | d1760c1d11f26cdef877990391cffc0d980cc283 /src/threading.h | |
parent | 203790a68020186bf668b2787968aa0d901fc518 (diff) | |
parent | 1a678810b20c65dcc29f5310161ec9ce2be1cd65 (diff) | |
download | lanes-e3cabe58aa63ef648e04dde1b634b3654d0df9ae.tar.gz lanes-e3cabe58aa63ef648e04dde1b634b3654d0df9ae.tar.bz2 lanes-e3cabe58aa63ef648e04dde1b634b3654d0df9ae.zip |
Merge pull request #186 from alarixbsd/master
NetBSD support
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 063cc82..9761f82 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) || defined(__ANDROID__) // no PTHREAD for PLATFORM_XBOX | 146 | #elif defined( PLATFORM_WIN32) || defined( PLATFORM_POCKETPC) || defined(__ANDROID__) || defined(__NetBSD__) // 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 |