about summary refs log tree commit diff
path: root/src/rt/rust_stack.cpp
diff options
context:
space:
mode:
authorBrian Anderson <banderson@mozilla.com>2012-02-07 18:34:04 -0800
committerBrian Anderson <banderson@mozilla.com>2012-02-08 15:42:51 -0800
commit35ba9715fafe14c96081049327c808fd0c5a2792 (patch)
treedc35189d1d7ffaa1097646d3a82f115578167653 /src/rt/rust_stack.cpp
parent2f4e7c157eb3ab9cd8270c3e9fffedd03f0cb055 (diff)
downloadrust-35ba9715fafe14c96081049327c808fd0c5a2792.tar.gz
rust-35ba9715fafe14c96081049327c808fd0c5a2792.zip
core: Add task::spawn_sched
This function creates a new scheduler with a specified number of threads and
immediately executes a task on it. The scheduler is configured to terminate
when the task dies. This is the minimum API necessary to enable blocking C
calls.
Diffstat (limited to 'src/rt/rust_stack.cpp')
0 files changed, 0 insertions, 0 deletions