diff options
| author | Brian Anderson <banderson@mozilla.com> | 2013-04-15 16:19:01 -0700 |
|---|---|---|
| committer | Brian Anderson <banderson@mozilla.com> | 2013-04-15 17:45:34 -0700 |
| commit | 68583a25a0b31bc113cf1f4ec479339cbf876e4d (patch) | |
| tree | a0d30ca211a59ac96ddec1c01a2596c563752c04 /src/rt/rust_run_program.cpp | |
| parent | ebefe07792caf17c03c6f90fb1979d4e6c935001 (diff) | |
| download | rust-68583a25a0b31bc113cf1f4ec479339cbf876e4d.tar.gz rust-68583a25a0b31bc113cf1f4ec479339cbf876e4d.zip | |
core::rt: Restructure context switches to take ownership of the Scheduler
In order to do a context switch you have to give up ownership of the scheduler, effectively passing it to the next execution context. This could help avoid some situations here tasks retain unsafe pointers to schedulers between context switches, across which they may have changed threads. There are still a number of uses of unsafe scheduler pointers.
Diffstat (limited to 'src/rt/rust_run_program.cpp')
0 files changed, 0 insertions, 0 deletions
