libmwemu 0.24.1

x86 32/64bits and system internals emulator, for securely emulating malware and other stuff.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
use crate::{emu::Emu, thread_context::ThreadContext};

impl Emu {
    // Thread management helper methods
    pub fn current_thread(&self) -> &ThreadContext {
        &self.threads[self.current_thread_id]
    }

    pub fn current_thread_mut(&mut self) -> &mut ThreadContext {
        &mut self.threads[self.current_thread_id]
    }
}