We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c6fe93d commit ad2fc50Copy full SHA for ad2fc50
src/libcore/task/mod.rs
@@ -971,15 +971,17 @@ fn test_spawn_sched_blocking() {
971
let lock = testrt::rust_dbg_lock_create();
972
973
do spawn_sched(SingleThreaded) {
974
- testrt::rust_dbg_lock_lock(lock);
+ unsafe {
975
+ testrt::rust_dbg_lock_lock(lock);
976
- oldcomm::send(start_ch, ());
977
+ oldcomm::send(start_ch, ());
978
- // Block the scheduler thread
979
- testrt::rust_dbg_lock_wait(lock);
980
- testrt::rust_dbg_lock_unlock(lock);
+ // Block the scheduler thread
+ testrt::rust_dbg_lock_wait(lock);
981
+ testrt::rust_dbg_lock_unlock(lock);
982
- oldcomm::send(fin_ch, ());
983
+ oldcomm::send(fin_ch, ());
984
+ }
985
};
986
987
// Wait until the other task has its lock
0 commit comments