Commit 7d8cb112 authored by Jens Breitbart's avatar Jens Breitbart
Browse files

sync::atomic::spin_loop_hint -> hint::spin_loop

Replaced std::sync::atomic::spin_loop_hint as it is deprecated.
parent f8cca7a4
......@@ -10,7 +10,7 @@ extern crate rftrace;
extern crate rftrace_frontend;
use std::env;
use std::sync::atomic::spin_loop_hint;
use std::hint;
use std::sync::Arc;
use std::thread;
......@@ -273,7 +273,7 @@ fn main() {
// only one core is able to enter startup code
// => the wait for the predecessor core
while tid != vm.cpu_online() {
spin_loop_hint();
hint::spin_loop();
}
// jump into the VM and excute code of the guest
......
......@@ -14,13 +14,13 @@ use kvm_ioctls::VmFd;
use log::debug;
use nix::sys::mman::*;
use std::convert::TryInto;
use std::hint;
use std::mem;
use std::net::Ipv4Addr;
use std::os::raw::c_void;
use std::ptr;
use std::ptr::{read_volatile, write_volatile};
use std::str::FromStr;
use std::sync::atomic::spin_loop_hint;
use std::sync::mpsc::sync_channel;
use std::sync::{Arc, Mutex};
use std::thread;
......@@ -104,7 +104,7 @@ impl UhyveNetwork {
evtfd.write(1).expect("Unable to trigger interrupt");
} else {
spin_loop_hint();
hint::spin_loop();
}
}
});
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment