|
@@ -39,6 +39,7 @@ extern "C"
|
|
typedef int starpu_pthread_t;
|
|
typedef int starpu_pthread_t;
|
|
typedef int starpu_pthread_attr_t;
|
|
typedef int starpu_pthread_attr_t;
|
|
|
|
|
|
|
|
+int starpu_pthread_create_on(char *name, starpu_pthread_t *thread, const starpu_pthread_attr_t *attr, void *(*start_routine) (void *), void *arg, int where);
|
|
int starpu_pthread_create(starpu_pthread_t *thread, const starpu_pthread_attr_t *attr, void *(*start_routine) (void *), void *arg);
|
|
int starpu_pthread_create(starpu_pthread_t *thread, const starpu_pthread_attr_t *attr, void *(*start_routine) (void *), void *arg);
|
|
int starpu_pthread_join(starpu_pthread_t thread, void **retval);
|
|
int starpu_pthread_join(starpu_pthread_t thread, void **retval);
|
|
int starpu_pthread_attr_init(starpu_pthread_attr_t *attr);
|
|
int starpu_pthread_attr_init(starpu_pthread_attr_t *attr);
|
|
@@ -50,7 +51,8 @@ int starpu_pthread_attr_setdetachstate(starpu_pthread_attr_t *attr, int detachst
|
|
typedef pthread_t starpu_pthread_t;
|
|
typedef pthread_t starpu_pthread_t;
|
|
typedef pthread_attr_t starpu_pthread_attr_t;
|
|
typedef pthread_attr_t starpu_pthread_attr_t;
|
|
|
|
|
|
-#define starpu_pthread_create pthread_create
|
|
|
|
|
|
+#define starpu_pthread_create(name, thread, attr, routine, arg) pthread_create(thread, attr, routine, arg)
|
|
|
|
+#define starpu_pthread_create_on(name, thread, attr, routine, arg, where) starpu_pthread_create(name, thread, attr, routine, arg)
|
|
#define starpu_pthread_join pthread_join
|
|
#define starpu_pthread_join pthread_join
|
|
#define starpu_pthread_attr_init pthread_attr_init
|
|
#define starpu_pthread_attr_init pthread_attr_init
|
|
#define starpu_pthread_attr_destroy pthread_attr_destroy
|
|
#define starpu_pthread_attr_destroy pthread_attr_destroy
|