Called the new_task upcall. There are refcount issues though.

This commit is contained in:
Eric Holk
2011-05-20 14:29:26 -07:00
parent 41b3979990
commit d01948cd07
3 changed files with 27 additions and 4 deletions

View File

@@ -538,10 +538,11 @@ upcall_get_type_desc(rust_task *task,
}
extern "C" CDECL rust_task *
upcall_new_task(rust_task *spawner, const char *name) {
upcall_new_task(rust_task *spawner, rust_vec *name) {
// name is a rust string structure.
LOG_UPCALL_ENTRY(spawner);
rust_dom *dom = spawner->dom;
rust_task *task = dom->create_task(spawner, name);
rust_task *task = dom->create_task(spawner, (const char *)name->data);
return task;
}