typedef struct s_xbt_thread_ {
xbt_os_thread_t os_thread;
- void_f_pvoid_t *code;
+ void_f_pvoid_t code;
void *userparam;
}s_xbt_thread_t;
}
-xbt_thread_t xbt_thread_create(const char*name,void_f_pvoid_t* code, void* param) {
+xbt_thread_t xbt_thread_create(const char*name,void_f_pvoid_t code, void* param) {
xbt_thread_t res = xbt_new0(s_xbt_thread_t,1);
res->userparam = param;
xbt_cond_t xbt_cond_init(void) {
xbt_cond_t res = (xbt_cond_t) xbt_os_cond_init();
DEBUG1("Create cond %p", res);
- return (xbt_cond_t) xbt_os_cond_init();
+ return res;
}
void xbt_cond_wait(xbt_cond_t cond, xbt_mutex_t mutex) {