libmwemu 0.24.4

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
13
14
15
use crate::emu::Emu;

impl Emu {
    /// Enable multi-threading support for the emulator.
    /// When enabled, the emulator will use thread scheduling for multiple threads.
    /// When disabled (default), it runs in single-threaded mode for backward compatibility.
    pub fn enable_threading(&mut self, enabled: bool) {
        self.cfg.enable_threading = enabled;
    }

    /// Check if multi-threading is enabled.
    pub fn is_threading_enabled(&self) -> bool {
        self.cfg.enable_threading
    }
}