Skip to content

Commit 5259fb9

Browse files
committed
move thread.rs into concurrency
1 parent e0f0e1f commit 5259fb9

File tree

6 files changed

+6
-6
lines changed

6 files changed

+6
-6
lines changed

src/concurrency/mod.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
pub mod data_race;
22
mod range_object_map;
33
pub mod sync;
4+
pub mod thread;
45
mod vector_clock;
56
pub mod weak_memory;
File renamed without changes.

src/lib.rs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,6 @@ mod operator;
6262
mod range_map;
6363
mod shims;
6464
mod stacked_borrows;
65-
pub mod thread;
6665

6766
// Establish a "crate-wide prelude": we often import `crate::*`.
6867

@@ -104,10 +103,10 @@ pub use crate::range_map::RangeMap;
104103
pub use crate::stacked_borrows::{
105104
CallId, EvalContextExt as StackedBorEvalContextExt, Item, Permission, SbTag, Stack, Stacks,
106105
};
107-
pub use crate::thread::{
106+
pub use concurrency::sync::{CondvarId, EvalContextExt as SyncEvalContextExt, MutexId, RwLockId};
107+
pub use concurrency::thread::{
108108
EvalContextExt as ThreadsEvalContextExt, SchedulingAction, ThreadId, ThreadManager, ThreadState,
109109
};
110-
pub use concurrency::sync::{CondvarId, EvalContextExt as SyncEvalContextExt, MutexId, RwLockId};
111110
/// Insert rustc arguments at the beginning of the argument list that Miri wants to be
112111
/// set per default, for maximal validation power.
113112
pub const MIRI_DEFAULT_ARGS: &[&str] = &[

src/shims/time.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
use std::time::{Duration, Instant, SystemTime};
22

3-
use crate::thread::Time;
3+
use crate::concurrency::thread::Time;
44
use crate::*;
55

66
/// Returns the time elapsed between the provided time and the unix epoch as a `Duration`.

src/shims/unix/linux/sync.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
use crate::thread::Time;
1+
use crate::concurrency::thread::Time;
22
use crate::*;
33
use rustc_target::abi::{Align, Size};
44
use std::time::{Instant, SystemTime};

src/shims/unix/sync.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ use std::time::SystemTime;
33
use rustc_hir::LangItem;
44
use rustc_middle::ty::{layout::TyAndLayout, query::TyCtxtAt, subst::Subst, Ty};
55

6-
use crate::thread::Time;
6+
use crate::concurrency::thread::Time;
77
use crate::*;
88

99
// pthread_mutexattr_t is either 4 or 8 bytes, depending on the platform.

0 commit comments

Comments
 (0)