File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -245,16 +245,16 @@ impl Thread {
245
245
work_condvar : unsafe { CondVar :: new ( ) } ,
246
246
links : Links :: new ( ) ,
247
247
} ) ?;
248
- {
249
- let mut inner = arc. inner . lock ( ) ;
250
- inner. set_reply_work ( reply_work) ;
251
- inner. set_return_work ( return_work) ;
252
- }
253
248
let thread = Arc :: get_mut ( & mut arc) . unwrap ( ) ;
254
249
// SAFETY: `inner` is pinned behind the `Arc` reference.
255
250
let inner = unsafe { Pin :: new_unchecked ( & thread. inner ) } ;
256
251
kernel:: spinlock_init!( inner, "Thread::inner" ) ;
257
252
kernel:: condvar_init!( thread. pinned_condvar( ) , "Thread::work_condvar" ) ;
253
+ {
254
+ let mut inner = arc. inner . lock ( ) ;
255
+ inner. set_reply_work ( reply_work) ;
256
+ inner. set_return_work ( return_work) ;
257
+ }
258
258
Ok ( arc)
259
259
}
260
260
You can’t perform that action at this time.
0 commit comments