diff options
| author | Eric Holk <eholk@mozilla.com> | 2011-08-17 14:42:28 -0700 |
|---|---|---|
| committer | Eric Holk <eholk@mozilla.com> | 2011-08-17 14:42:40 -0700 |
| commit | ae89ea223de2fe5e9c9a5cdd2fa85a93828a7daa (patch) | |
| tree | 1a28bb09eaeaf105bd84cc62c6a3e6c9ae2a8b8f /src/rt/rust_scheduler.cpp | |
| parent | efac7c9a197fa3ff3497ce99a2dda8693b3ef683 (diff) | |
| download | rust-ae89ea223de2fe5e9c9a5cdd2fa85a93828a7daa.tar.gz rust-ae89ea223de2fe5e9c9a5cdd2fa85a93828a7daa.zip | |
Making more of the rust_task structure directly accessible from Rust.
Diffstat (limited to 'src/rt/rust_scheduler.cpp')
| -rw-r--r-- | src/rt/rust_scheduler.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/rt/rust_scheduler.cpp b/src/rt/rust_scheduler.cpp index 33e607a85e1..913f489c382 100644 --- a/src/rt/rust_scheduler.cpp +++ b/src/rt/rust_scheduler.cpp @@ -47,10 +47,10 @@ void rust_scheduler::activate(rust_task *task) { context ctx; - task->ctx.next = &ctx; + task->user.ctx.next = &ctx; DLOG(this, task, "descheduling..."); lock.unlock(); - task->ctx.swap(ctx); + task->user.ctx.swap(ctx); lock.lock(); DLOG(this, task, "task has returned"); } @@ -226,7 +226,7 @@ rust_scheduler::start_main_loop() { ", state: %s", scheduled_task->name, (uintptr_t)scheduled_task, - scheduled_task->rust_sp, + scheduled_task->user.rust_sp, scheduled_task->state->name); interrupt_flag = 0; @@ -244,7 +244,7 @@ rust_scheduler::start_main_loop() { scheduled_task->name, (uintptr_t)scheduled_task, scheduled_task->state->name, - scheduled_task->rust_sp, + scheduled_task->user.rust_sp, id); reap_dead_tasks(id); |
