diff options
| Commit | 2653f4e53f9e878b8c4d09088fd79b4e22a48865 (patch) | |
|---|---|---|
| Author | 2025-02-14 16:06:45 +0200 | |
| Committer | 2025-02-14 16:06:45 +0200 | |
| Files | a82289da31eb8eed58d0383eb9495416f7cd9180 /vm/src/main.rs | |
| tonkobali-2653f4e53f9e878b8c4d09088fd79b4e22a48865.tar tonkobali-2653f4e53f9e878b8c4d09088fd79b4e22a48865.tar.gz tonkobali-2653f4e53f9e878b8c4d09088fd79b4e22a48865.zip | ||
| Parent | c8955f48580db8067765f76c8967e44dbb06517a (diff) | |
feat(vm): Add ability to store data in memory and to start execution after halt
1 files changed, 1 insertions, 7 deletions
| -rw-r--r-- | vm/src/main.rs | 8 |
diff --git a/vm/src/main.rs b/vm/src/main.rs index 1753eb3..fa4a3c5 100644 --- a/vm/src/main.rs +++ b/vm/src/main.rs @@ -27,13 +27,7 @@ fn main() { } else { VirtualMachine::create(args.tick_gap) }; - - let _vm_handle = { - let vm = Arc::clone(&vm); - thread::spawn(move || { - vm.start(); - }) - }; + vm.spawn(); let mut monitor = VirtualMachineMonitor::new(args.refresh); monitor.start(vm); |
