ANEW M_Object new_string(MemPool, const VM_Shred, const m_str);
ANEW M_Object new_string2(const struct Gwion_*, const VM_Shred, const m_str);
ANEW M_Object new_shred(const VM_Shred, const m_bool);
-ANN void fork_launch(VM const*, const M_Object, const m_uint);
+ANN void fork_launch(const M_Object, const m_uint);
ANN void __release(const M_Object, const VM_Shred);
ANN void exception(const VM_Shred, const m_str);
ANN void broadcast(const M_Object);
THREAD_RETURN(0);
}
-ANN void fork_launch(VM const* vm, const M_Object o, const m_uint sz) {
+ANN void fork_launch(const M_Object o, const m_uint sz) {
FORK_RETSIZE(o) = sz;
MUTEX_SETUP(FORK_MUTEX(o));
THREAD_COND_SETUP(FORK_COND(o));
vector_init(&parent->gwion->data->child);
vector_add(&parent->gwion->data->child, (vtype)o);
shreduler_add(vm->shreduler, sh);
- fork_launch(parent, sh->info->me, retsz);
+ fork_launch(sh->info->me, retsz);
return sh;
}