summaryrefslogtreecommitdiff
path: root/libs/ardour/ardour/types.h
diff options
context:
space:
mode:
Diffstat (limited to 'libs/ardour/ardour/types.h')
-rw-r--r--libs/ardour/ardour/types.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/libs/ardour/ardour/types.h b/libs/ardour/ardour/types.h
index 17bffc20e4..f2319d7669 100644
--- a/libs/ardour/ardour/types.h
+++ b/libs/ardour/ardour/types.h
@@ -26,6 +26,7 @@
#include <boost/shared_ptr.hpp>
#include <sys/types.h>
#include <stdint.h>
+#include <pthread.h>
#include <inttypes.h>
@@ -609,6 +610,16 @@ namespace ARDOUR {
uint32_t max; //< samples
};
+/* PLATFORM SPECIFIC #ifdef's here */
+
+ /** Define the native thread type used on the platform */
+ typedef pthread_t AudioBackendNativeThread;
+ static inline bool self_thread_equal (AudioBackendNativeThread thr) {
+ return pthread_equal (thr, pthread_self());
+ }
+
+/* PLATFORM SPECIFIC #endif's here */
+
} // namespace ARDOUR