Fix top level build

This commit is contained in:
GuillaumeDIDIER 2020-07-06 09:59:01 +02:00
parent cbe2367019
commit d47a7167ff

View File

@ -21,6 +21,8 @@ use nix::unistd::Pid;
use std::sync::Arc; use std::sync::Arc;
#[cfg(feature = "use_std")] #[cfg(feature = "use_std")]
use std::thread; use std::thread;
#[cfg(feature = "use_std")]
use nix::Error;
extern crate alloc; extern crate alloc;
use crate::calibration::Verbosity::*; use crate::calibration::Verbosity::*;
@ -30,7 +32,7 @@ use core::cmp::min;
use itertools::Itertools; use itertools::Itertools;
use core::sync::atomic::{AtomicPtr, AtomicBool, Ordering, spin_loop_hint}; use core::sync::atomic::{AtomicPtr, AtomicBool, Ordering, spin_loop_hint};
use core::ptr::{/*null,*/ null_mut}; use core::ptr::{/*null,*/ null_mut};
use nix::Error;
use atomic::Atomic; use atomic::Atomic;
@ -470,6 +472,8 @@ pub unsafe fn calibrate_fixed_freq_2_thread<I: Iterator<Item = (usize, usize)>>(
) -> Vec<CalibrateResult2T> { ) -> Vec<CalibrateResult2T> {
calibrate_fixed_freq_2_thread_impl(p, increment, len, cores, operations, hist_params, verbosity_level) calibrate_fixed_freq_2_thread_impl(p, increment, len, cores, operations, hist_params, verbosity_level)
} }
#[cfg(feature = "use_std")]
fn calibrate_fixed_freq_2_thread_impl<I: Iterator<Item = (usize, usize)>>( fn calibrate_fixed_freq_2_thread_impl<I: Iterator<Item = (usize, usize)>>(
p: *const u8, p: *const u8,
increment: usize, increment: usize,