aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRaghuram Subramani <raghus2247@gmail.com>2023-12-29 21:53:58 +0530
committerRaghuram Subramani <raghus2247@gmail.com>2023-12-29 21:53:58 +0530
commitb7048013fb2a853c5cfc0ca8de31e313a86b216d (patch)
tree178ae6d73ca2e377ef4ed0a5d5f8e0d784cebfb0
parent8656492dc77f32132be2d09682576a90a99afba6 (diff)
detach thread properly
-rw-r--r--.compile6
-rw-r--r--roms/test_opcode.ch8bin0 -> 478 bytes
-rw-r--r--src/main.cpp2
3 files changed, 8 insertions, 0 deletions
diff --git a/.compile b/.compile
new file mode 100644
index 0000000..5889e31
--- /dev/null
+++ b/.compile
@@ -0,0 +1,6 @@
+#!/bin/sh
+set -xe
+
+cd build
+make -j4
+./chip8emu 10 2 ../roms/test_opcode.ch8
diff --git a/roms/test_opcode.ch8 b/roms/test_opcode.ch8
new file mode 100644
index 0000000..f540f69
--- /dev/null
+++ b/roms/test_opcode.ch8
Binary files differ
diff --git a/src/main.cpp b/src/main.cpp
index 4b478aa..1eb5c30 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -43,5 +43,7 @@ int main(int argc, char** argv) {
platform.Update(chip8->video, videoScale);
}
+ timerThread.detach();
+
return 0;
}