Rename ThreadSet to ThreadManager.
This commit is contained in:
parent
1c8a59c691
commit
d907fb5021
@ -27,7 +27,7 @@
|
||||
|
||||
use crate::*;
|
||||
|
||||
pub use crate::threads::{ThreadId, ThreadSet, ThreadState, ThreadLocalStorage};
|
||||
pub use crate::threads::{ThreadId, ThreadManager, ThreadState, ThreadLocalStorage};
|
||||
|
||||
// Some global facts about the emulated machine.
|
||||
pub const PAGE_SIZE: u64 = 4 * 1024; // FIXME: adjust to target architecture
|
||||
@ -257,7 +257,7 @@ pub struct Evaluator<'mir, 'tcx> {
|
||||
pub(crate) time_anchor: Instant,
|
||||
|
||||
/// The set of threads.
|
||||
pub(crate) threads: ThreadSet<'mir, 'tcx>,
|
||||
pub(crate) threads: ThreadManager<'mir, 'tcx>,
|
||||
|
||||
/// Precomputed `TyLayout`s for primitive data types that are commonly used inside Miri.
|
||||
pub(crate) layouts: PrimitiveLayouts<'tcx>,
|
||||
|
@ -120,7 +120,7 @@ fn default() -> Self {
|
||||
|
||||
/// A set of threads.
|
||||
#[derive(Debug)]
|
||||
pub struct ThreadSet<'mir, 'tcx> {
|
||||
pub struct ThreadManager<'mir, 'tcx> {
|
||||
/// Identifier of the currently active thread.
|
||||
active_thread: ThreadId,
|
||||
/// Threads used in the program.
|
||||
@ -131,7 +131,7 @@ pub struct ThreadSet<'mir, 'tcx> {
|
||||
blockset_counter: u32,
|
||||
}
|
||||
|
||||
impl<'mir, 'tcx> Default for ThreadSet<'mir, 'tcx> {
|
||||
impl<'mir, 'tcx> Default for ThreadManager<'mir, 'tcx> {
|
||||
fn default() -> Self {
|
||||
let mut threads = IndexVec::new();
|
||||
threads.push(Default::default());
|
||||
@ -139,7 +139,7 @@ fn default() -> Self {
|
||||
}
|
||||
}
|
||||
|
||||
impl<'mir, 'tcx: 'mir> ThreadSet<'mir, 'tcx> {
|
||||
impl<'mir, 'tcx: 'mir> ThreadManager<'mir, 'tcx> {
|
||||
/// Borrow the stack of the active thread.
|
||||
fn active_thread_stack(&self) -> &[Frame<'mir, 'tcx, Tag, FrameData<'tcx>>] {
|
||||
&self.threads[self.active_thread].stack
|
||||
|
Loading…
Reference in New Issue
Block a user