diff options
| author | Eric Holk <eholk@mozilla.com> | 2011-05-20 14:29:26 -0700 |
|---|---|---|
| committer | Eric Holk <eholk@mozilla.com> | 2011-05-20 16:51:08 -0700 |
| commit | d01948cd076b0266607277aea8f729d36b925053 (patch) | |
| tree | c8756e1e6eb7326afb64e087248ede28a415236c /src/rt/rust_upcall.cpp | |
| parent | 41b39799906fd4254d702078c98f7196145dfb12 (diff) | |
| download | rust-d01948cd076b0266607277aea8f729d36b925053.tar.gz rust-d01948cd076b0266607277aea8f729d36b925053.zip | |
Called the new_task upcall. There are refcount issues though.
Diffstat (limited to 'src/rt/rust_upcall.cpp')
| -rw-r--r-- | src/rt/rust_upcall.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/rt/rust_upcall.cpp b/src/rt/rust_upcall.cpp index 6bdfaef96e1..f95a6e3ebee 100644 --- a/src/rt/rust_upcall.cpp +++ b/src/rt/rust_upcall.cpp @@ -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; } |
