aboutsummaryrefslogtreecommitdiff
path: root/src/main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/main.cpp')
-rw-r--r--src/main.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/main.cpp b/src/main.cpp
index 583b4ad..7e7d90a 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -1,5 +1,6 @@
#include <iostream>
#include <unistd.h>
+#include <thread>
#include "chip8.hpp"
#include "platform.hpp"
@@ -24,7 +25,7 @@ int main(int argc, char** argv) {
Chip8 chip8;
chip8.LoadROM(filename);
- int count = 0;
+ std::thread timerThread(&Chip8::TimerUpdateThread, &chip8, &platform);
bool quit = false;
while (!quit) {