X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=thread.h;h=9b7524586c6517a5f3e527e5115e2aa81b2d363d;hb=dcb4812c733545a68ef39b77c2dc4f7d440de203;hp=a2522852f5283f02ec346b403aae87b6fb8d1b24;hpb=9731c6ca89275fa6ca122bfe3be4600e5836a905;p=p5sagit%2Fp5-mst-13.2.git diff --git a/thread.h b/thread.h index a252285..9b75245 100644 --- a/thread.h +++ b/thread.h @@ -36,10 +36,12 @@ #endif #ifndef YIELD -# ifdef HAS_PTHREAD_YIELD -# define YIELD pthread_yield() -# else +# ifdef HAS_SCHED_YIELD # define YIELD sched_yield() +# else +# ifdef HAS_PTHREAD_YIELD +# define YIELD pthread_yield() +# endif # endif #endif @@ -224,5 +226,9 @@ typedef struct condpair { #define THR /* Rats: if dTHR is just blank then the subsequent ";" throws an error */ +#ifdef WIN32 +#define dTHR extern int Perl___notused +#else #define dTHR extern int errno +#endif #endif /* USE_THREADS */