File tree Expand file tree Collapse file tree 1 file changed +6
-8
lines changed Expand file tree Collapse file tree 1 file changed +6
-8
lines changed Original file line number Diff line number Diff line change @@ -60,6 +60,7 @@ rust_kernel::create_scheduler(size_t num_threads) {
60
60
sched = new (this , " rust_scheduler" )
61
61
rust_scheduler (this , srv, num_threads, 0 );
62
62
live_schedulers = 1 ;
63
+ sched->start_task_threads ();
63
64
return 0 ;
64
65
}
65
66
84
85
rust_kernel::wait_for_schedulers ()
85
86
{
86
87
I (this , !sched_lock.lock_held_by_current_thread ());
87
- sched->start_task_threads ();
88
- {
89
- scoped_lock with (sched_lock);
90
- // Schedulers could possibly have already exited
91
- if (live_schedulers != 0 ) {
92
- sched_lock.wait ();
93
- }
94
- return rval;
88
+ scoped_lock with (sched_lock);
89
+ // Schedulers could possibly have already exited
90
+ if (live_schedulers != 0 ) {
91
+ sched_lock.wait ();
95
92
}
93
+ return rval;
96
94
}
97
95
98
96
void
You can’t perform that action at this time.
0 commit comments