import timespec from time rather than bits
This commit is contained in:
+1
-2
@@ -3,10 +3,9 @@
|
||||
use crate::{
|
||||
error::Errno,
|
||||
header::{
|
||||
bits_timespec::timespec,
|
||||
errno::{EINVAL, ETIMEDOUT},
|
||||
pthread::*,
|
||||
time::{CLOCK_MONOTONIC, CLOCK_REALTIME, timespec_realtime_to_monotonic},
|
||||
time::{CLOCK_MONOTONIC, CLOCK_REALTIME, timespec, timespec_realtime_to_monotonic},
|
||||
},
|
||||
platform::types::clockid_t,
|
||||
};
|
||||
|
||||
+1
-1
@@ -20,8 +20,8 @@ pub use self::{
|
||||
use crate::{
|
||||
error::Errno,
|
||||
header::{
|
||||
bits_timespec::timespec,
|
||||
errno::{EAGAIN, EINTR, ETIMEDOUT},
|
||||
time::timespec,
|
||||
},
|
||||
out::Out,
|
||||
platform::{Pal, Sys, types::c_int},
|
||||
|
||||
@@ -5,7 +5,7 @@ use core::{
|
||||
|
||||
use crate::{
|
||||
error::Errno,
|
||||
header::{bits_timespec::timespec, errno::*, pthread::*},
|
||||
header::{errno::*, pthread::*, time::timespec},
|
||||
};
|
||||
|
||||
use crate::platform::{Pal, Sys, types::c_int};
|
||||
|
||||
+1
-2
@@ -7,9 +7,8 @@ use core::{
|
||||
use crate::{
|
||||
error::{Errno, Result},
|
||||
header::{
|
||||
bits_timespec::timespec,
|
||||
errno::{EINVAL, ETIMEDOUT},
|
||||
time::{CLOCK_MONOTONIC, CLOCK_REALTIME, timespec_realtime_to_monotonic},
|
||||
time::{CLOCK_MONOTONIC, CLOCK_REALTIME, timespec, timespec_realtime_to_monotonic},
|
||||
},
|
||||
platform::types::clockid_t,
|
||||
pthread::Pshared,
|
||||
|
||||
@@ -2,10 +2,7 @@
|
||||
//TODO: improve implementation
|
||||
|
||||
use crate::{
|
||||
header::{
|
||||
bits_timespec::timespec,
|
||||
time::{CLOCK_MONOTONIC, CLOCK_REALTIME, timespec_realtime_to_monotonic},
|
||||
},
|
||||
header::time::{CLOCK_MONOTONIC, CLOCK_REALTIME, timespec, timespec_realtime_to_monotonic},
|
||||
platform::types::{c_uint, clockid_t},
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user