about summary refs log tree commit diff
path: root/src/rt/rust_run_program.cpp
diff options
context:
space:
mode:
authorBrian Anderson <banderson@mozilla.com>2013-04-15 16:19:01 -0700
committerBrian Anderson <banderson@mozilla.com>2013-04-15 17:45:34 -0700
commit68583a25a0b31bc113cf1f4ec479339cbf876e4d (patch)
treea0d30ca211a59ac96ddec1c01a2596c563752c04 /src/rt/rust_run_program.cpp
parentebefe07792caf17c03c6f90fb1979d4e6c935001 (diff)
downloadrust-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