diff options
| author | Eric Holk <eholk@mozilla.com> | 2011-08-25 11:20:43 -0700 |
|---|---|---|
| committer | Eric Holk <eholk@mozilla.com> | 2011-08-25 11:21:25 -0700 |
| commit | 2f7c583bc12c0bddb28e43ea79b593a014811b09 (patch) | |
| tree | dff43b4686d290723f689b6605449fabf19b3622 /src/rt | |
| parent | b31815f8a0b98445d2a82888a290b9543ad4400f (diff) | |
| download | rust-2f7c583bc12c0bddb28e43ea79b593a014811b09.tar.gz rust-2f7c583bc12c0bddb28e43ea79b593a014811b09.zip | |
Cleaning up task and comm exports, updating all the test cases.
Diffstat (limited to 'src/rt')
| -rw-r--r-- | src/rt/rust_chan.cpp | 2 | ||||
| -rw-r--r-- | src/rt/rust_task.h | 3 |
2 files changed, 3 insertions, 2 deletions
diff --git a/src/rt/rust_chan.cpp b/src/rt/rust_chan.cpp index 12a199f685d..c042f074aa2 100644 --- a/src/rt/rust_chan.cpp +++ b/src/rt/rust_chan.cpp @@ -64,7 +64,7 @@ void rust_chan::disassociate() { port->chans.swap_delete(this); // Delete reference to the port. - port = NULL; + port = NULL; this->deref(); } diff --git a/src/rt/rust_task.h b/src/rt/rust_task.h index 4fc37ca1ee9..42013ca1f5c 100644 --- a/src/rt/rust_task.h +++ b/src/rt/rust_task.h @@ -26,7 +26,8 @@ struct frame_glue_fns { // library. This struct must agree with the std::task::rust_task record. struct rust_task_user { rust_task_id id; - uint8_t notify_enabled; + uint32_t notify_enabled; // this is way more bits than necessary, but it + // simplifies the alignment. chan_handle notify_chan; context ctx; uintptr_t rust_sp; // Saved sp when not running. |
