diff options
author | Benoit Germain <bnt.germain@gmail.com> | 2013-11-22 09:42:46 +0100 |
---|---|---|
committer | Benoit Germain <bnt.germain@gmail.com> | 2013-11-22 09:42:46 +0100 |
commit | 29385b4b1ad2df501e4306c7e908d7d1f2608eef (patch) | |
tree | f6986ddad53e00416df2a3f912f3b602416275b5 /src | |
parent | 38d03690204493a95b0b2453f17933c6a34e2aaf (diff) | |
download | lanes-29385b4b1ad2df501e4306c7e908d7d1f2608eef.tar.gz lanes-29385b4b1ad2df501e4306c7e908d7d1f2608eef.tar.bz2 lanes-29385b4b1ad2df501e4306c7e908d7d1f2608eef.zip |
MinGW-pthread supports -3/+3 thread priority range, so accept it API-side too
Diffstat (limited to 'src')
-rw-r--r-- | src/threading.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/threading.h b/src/threading.h index aed5b27..aa34248 100644 --- a/src/threading.h +++ b/src/threading.h | |||
@@ -221,7 +221,10 @@ bool_t SIGNAL_WAIT( SIGNAL_T *ref, MUTEX_T *mu, time_d timeout ); | |||
221 | # else | 221 | # else |
222 | # define THREAD_PRIO_MIN (0) | 222 | # define THREAD_PRIO_MIN (0) |
223 | # endif | 223 | # endif |
224 | # define THREAD_PRIO_MAX (sudo ? +2 : 0) | 224 | # define THREAD_PRIO_MAX (sudo ? +2 : 0) |
225 | # elif defined __WINPTHREADS_VERSION | ||
226 | # define THREAD_PRIO_MIN (-3) | ||
227 | # define THREAD_PRIO_MAX (+3) | ||
225 | # else | 228 | # else |
226 | # define THREAD_PRIO_MIN (-2) | 229 | # define THREAD_PRIO_MIN (-2) |
227 | # define THREAD_PRIO_MAX (+2) | 230 | # define THREAD_PRIO_MAX (+2) |