rt: Allow some schedulers to stay alive even without tasks to execute

This commit is contained in:
Brian Anderson
2012-04-01 16:38:42 -07:00
parent 0a5e9d45e1
commit fb528dd7d6
3 changed files with 26 additions and 8 deletions

View File

@@ -69,7 +69,7 @@ rust_kernel::create_scheduler(size_t num_threads) {
id = max_sched_id++;
K(srv, id != INTPTR_MAX, "Hit the maximum scheduler id");
sched = new (this, "rust_scheduler")
rust_scheduler(this, srv, num_threads, id);
rust_scheduler(this, srv, num_threads, id, true);
bool is_new = sched_table
.insert(std::pair<rust_sched_id,
rust_scheduler*>(id, sched)).second;