From 29385b4b1ad2df501e4306c7e908d7d1f2608eef Mon Sep 17 00:00:00 2001 From: Benoit Germain Date: Fri, 22 Nov 2013 09:42:46 +0100 Subject: MinGW-pthread supports -3/+3 thread priority range, so accept it API-side too --- src/threading.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src') 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 ); # else # define THREAD_PRIO_MIN (0) # endif -# define THREAD_PRIO_MAX (sudo ? +2 : 0) +# define THREAD_PRIO_MAX (sudo ? +2 : 0) +# elif defined __WINPTHREADS_VERSION +# define THREAD_PRIO_MIN (-3) +# define THREAD_PRIO_MAX (+3) # else # define THREAD_PRIO_MIN (-2) # define THREAD_PRIO_MAX (+2) -- cgit v1.2.3-55-g6feb