- semaphore is available,
- pthread_t is not a pointer type (but here it's not used anyway)
, _npar (0)
, _parsize (0)
, _options (0)
+#ifndef PTW32_VERSION
, _pthr (0)
+#endif
, _inp_list (0)
, _out_list (0)
, _plan_r2c (0)
pthread_attr_t attr;
struct sched_param parm;
+#ifndef PTW32_VERSION
_pthr = 0;
+#endif
min = sched_get_priority_min (policy);
max = sched_get_priority_max (policy);
abspri += _prio;
_trig.wait ();
if (_stat == ST_TERM) {
_stat = ST_IDLE;
+#ifndef PTW32_VERSION
_pthr = 0;
+#endif
return;
}
process (false);
#undef ZCSEMA_IS_IMPLEMENTED
#endif
-#if defined(__linux__) || defined(__GNU__) || defined(__FreeBSD__) || defined(__FreeBSD_kernel__)
+#if defined(__linux__) || defined(__GNU__) || defined(__FreeBSD__) || defined(__FreeBSD_kernel__) || defined (_WIN32)
#include <semaphore.h>