aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/threading.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/threading.h b/src/threading.h
index 768d61c..d87bba6 100644
--- a/src/threading.h
+++ b/src/threading.h
@@ -233,8 +233,13 @@ bool_t SIGNAL_WAIT( SIGNAL_T *ref, MUTEX_T *mu, time_d timeout );
233# define THREAD_PRIO_MAX (+3) 233# define THREAD_PRIO_MAX (+3)
234# endif 234# endif
235 235
236#if THREADWAIT_METHOD == THREADWAIT_CONDVAR
236#define THREAD_CLEANUP_PUSH( cb_, val_) pthread_cleanup_push( cb_, val_) 237#define THREAD_CLEANUP_PUSH( cb_, val_) pthread_cleanup_push( cb_, val_)
237#define THREAD_CLEANUP_POP( execute_) pthread_cleanup_pop( execute_) 238#define THREAD_CLEANUP_POP( execute_) pthread_cleanup_pop( execute_)
239#else
240#define THREAD_CLEANUP_PUSH( cb_, val_) {
241#define THREAD_CLEANUP_POP( execute_) }
242#endif // THREADWAIT_METHOD == THREADWAIT_CONDVAR
238#endif // THREADAPI == THREADAPI_WINDOWS 243#endif // THREADAPI == THREADAPI_WINDOWS
239 244
240/* 245/*