summaryrefslogtreecommitdiff
path: root/libs/qm-dsp/thread/Thread.h
diff options
context:
space:
mode:
authorRobin Gareus <robin@gareus.org>2016-10-06 00:16:44 +0200
committerRobin Gareus <robin@gareus.org>2016-10-06 00:57:53 +0200
commitf68d2e06bcfb81efda107d3b4c3aa7dbc2d73bc2 (patch)
tree286d5b2b1c3573c2fbfc77b4d29b0b2a6bfa9686 /libs/qm-dsp/thread/Thread.h
parent2a27cc475867612afd261e5bf3b2a1a42b9c75cc (diff)
update qm-dsp library
Diffstat (limited to 'libs/qm-dsp/thread/Thread.h')
-rw-r--r--libs/qm-dsp/thread/Thread.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/libs/qm-dsp/thread/Thread.h b/libs/qm-dsp/thread/Thread.h
index e26f452430..cd5489d379 100644
--- a/libs/qm-dsp/thread/Thread.h
+++ b/libs/qm-dsp/thread/Thread.h
@@ -13,8 +13,11 @@
#ifdef _WIN32
#include <windows.h>
#else /* !_WIN32 */
+#define USE_PTHREADS
#ifdef USE_PTHREADS
#include <pthread.h>
+#else
+#error Must have either _WIN32 or USE_PTHREADS defined
#endif /* USE_PTHREADS */
#endif /* !_WIN32 */
@@ -127,7 +130,7 @@ public:
void wait(int us = 0);
void signal();
-
+
private:
#ifdef _WIN32