File tree Expand file tree Collapse file tree 2 files changed +9
-3
lines changed
branches/try2/src/libcore/rt Expand file tree Collapse file tree 2 files changed +9
-3
lines changed Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ refs/heads/snap-stage3: 78a7676898d9f80ab540c6df5d4c9ce35bb50463
5
5
refs/heads/try: 519addf6277dbafccbb4159db4b710c37eaa2ec5
6
6
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
7
7
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b
8
- refs/heads/try2: 93757d81853302408dd30a3ad1a4102eae26b7c5
8
+ refs/heads/try2: 4f1dd1fd212f51f0a2f4fe20f9ebc7e0dc9081d8
9
9
refs/heads/dist-snap: ba4081a5a8573875fed17545846f6f6902c8ba8d
10
10
refs/tags/release-0.2: c870d2dffb391e14efb05aa27898f1f6333a9596
11
11
refs/tags/release-0.3: b5f0d0f648d9a6153664837026ba1be43d3e2503
Original file line number Diff line number Diff line change @@ -203,7 +203,10 @@ pub impl Scheduler {
203
203
Context :: swap ( last_task_context, sched_context) ;
204
204
}
205
205
206
- self . run_cleanup_job ( ) ;
206
+ // We could be executing in a different thread now
207
+ do local:: borrow |sched| {
208
+ sched. run_cleanup_job ( ) ;
209
+ }
207
210
}
208
211
209
212
/// Switch directly to another task, without going through the scheduler.
@@ -224,7 +227,10 @@ pub impl Scheduler {
224
227
Context :: swap ( last_task_context, next_task_context) ;
225
228
}
226
229
227
- self . run_cleanup_job ( ) ;
230
+ // We could be executing in a different thread now
231
+ do local:: borrow |sched| {
232
+ sched. run_cleanup_job ( ) ;
233
+ }
228
234
}
229
235
230
236
// * Other stuff
You can’t perform that action at this time.
0 commit comments