V2: now with more locks!

This commit is contained in:
Philipp Brüschweiler
2012-09-18 12:28:05 +02:00
committed by Brian Anderson
parent 68e755b1c2
commit d3e0a06578
6 changed files with 43 additions and 33 deletions

View File

@@ -627,13 +627,13 @@ start_task(rust_task *target, fn_env_pair *f) {
}
extern "C" CDECL size_t
rust_sched_threads() {
rust_sched_current_nonlazy_threads() {
rust_task *task = rust_get_current_task();
return task->sched->number_of_threads();
}
extern "C" CDECL size_t
rust_max_sched_threads() {
rust_sched_threads() {
rust_task *task = rust_get_current_task();
return task->sched->max_number_of_threads();
}