mirror of
https://github.com/momo5502/emulator.git
synced 2026-01-31 08:21:03 +00:00
Support stopping emulation while all threads are sleeping
This fixes #242
This commit is contained in:
@@ -132,6 +132,7 @@ class windows_emulator
|
||||
}
|
||||
|
||||
void start(size_t count = 0);
|
||||
void stop();
|
||||
|
||||
void serialize(utils::buffer_serializer& buffer) const;
|
||||
void deserialize(utils::buffer_deserializer& buffer);
|
||||
@@ -191,6 +192,7 @@ class windows_emulator
|
||||
bool switch_thread_{false};
|
||||
bool use_relative_time_{false};
|
||||
bool silent_until_main_{false};
|
||||
std::atomic_bool should_stop{false};
|
||||
|
||||
std::unordered_map<uint16_t, uint16_t> port_mappings_{};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user