aboutsummaryrefslogtreecommitdiff
path: root/externals/grill/flext/source/flsupport.h
diff options
context:
space:
mode:
authorThomas Grill <xovo@users.sourceforge.net>2003-12-27 03:32:55 +0000
committerThomas Grill <xovo@users.sourceforge.net>2003-12-27 03:32:55 +0000
commitb58a4e32bd6a69b21e32651128d0223fa185d3e7 (patch)
treeb0b7a5dfa7494e029ad5bad6dca15a5652acd924 /externals/grill/flext/source/flsupport.h
parentd10ebb2a7ad78029474186b7e610fe1611d3bcd8 (diff)
""
svn path=/trunk/; revision=1231
Diffstat (limited to 'externals/grill/flext/source/flsupport.h')
-rw-r--r--externals/grill/flext/source/flsupport.h35
1 files changed, 35 insertions, 0 deletions
diff --git a/externals/grill/flext/source/flsupport.h b/externals/grill/flext/source/flsupport.h
index c964c66e..3e2b6acd 100644
--- a/externals/grill/flext/source/flsupport.h
+++ b/externals/grill/flext/source/flsupport.h
@@ -649,6 +649,41 @@ public:
@{
*/
+#if FLEXT_SYS == FLEXT_SYS_MAX && FLEXT_OS == FLEXT_OS_MAC && FLEXT_THREADS == FLEXT_THR_POSIX
+ // These are function pointers of MachO functions imported to the CFM world
+
+ static pthread_t (*pthread_self)();
+ static int (*pthread_equal)(pthread_t,pthread_t);
+ static int (*pthread_create)(pthread_t *,const pthread_attr_t *,void *(*)(void *),void *);
+ static int (*pthread_cancel)(pthread_t);
+ static void (*pthread_testcancel)(void);
+ static int (*pthread_join)(pthread_t,void **);
+ static void (*pthread_exit)(void *);
+
+ static int (*pthread_attr_init)(pthread_attr_t *);
+ static int (*pthread_attr_destroy)(pthread_attr_t *);
+ static int (*pthread_attr_setdetachstate)(pthread_attr_t *,int);
+
+ static int (*pthread_getschedparam)(pthread_t,int *,struct sched_param *);
+ static int (*pthread_setschedparam)(pthread_t,int,const struct sched_param *);
+
+ static int (*pthread_mutex_init)(pthread_mutex_t *,const pthread_mutexattr_t *);
+ static int (*pthread_mutex_destroy)(pthread_mutex_t *);
+ static int (*pthread_mutex_lock)(pthread_mutex_t *);
+ static int (*pthread_mutex_unlock)(pthread_mutex_t *);
+ static int (*pthread_mutex_trylock)(pthread_mutex_t *);
+
+ static int (*pthread_cond_init)(pthread_cond_t *,const pthread_condattr_t *);
+ static int (*pthread_cond_destroy)(pthread_cond_t *);
+ static int (*pthread_cond_signal)(pthread_cond_t *);
+ static int (*pthread_cond_wait)(pthread_cond_t *,pthread_mutex_t *);
+ static int (*pthread_cond_timedwait)(pthread_cond_t *,pthread_mutex_t *,const struct timespec *);
+
+ static int (*sched_yield)(void);
+ static int (*sched_get_priority_min)(int);
+ static int (*sched_get_priority_max)(int);
+#endif
+
//! thread type
#if FLEXT_THREADS == FLEXT_THR_MP
typedef MPTaskID thrid_t;