We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1109398 commit b00ac79Copy full SHA for b00ac79
1 file changed
jsrc/mt.h
@@ -1,7 +1,9 @@
1
// jtpthread_mutex*: mutex implementation for macos/ios/..
2
// see mt.c
3
4
+#if PYXES
5
#ifndef __APPLE__
6
+#include <pthread.h>
7
typedef pthread_mutex_t jtpthread_mutex_t;
8
static inline void jtpthread_mutex_init(jtpthread_mutex_t *m,B recursive){
9
if(likely(!recursive)){pthread_mutex_init(m,0);}
@@ -82,3 +84,4 @@ C jtpthread_mutex_unlock(jtpthread_mutex_t*,I self); //0 or error code
82
84
83
85
//note: self must be non-zero
86
#endif //__APPLE__
87
+#endif //PYXES
0 commit comments