summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2015-07-06 08:31:48 +0200
committerStanislaw Halik <sthalik@misaki.pl>2015-07-06 08:31:48 +0200
commit68c8278b25b417c21dfbb0e3974044a36dfc151e (patch)
tree8a8bcae27ced5e5e4ef247ad64b55f319e892846
parent555d0555e990a99c2061570dcebd0d868f1334b8 (diff)
simconnect: don't set affinity, only meant for trackers
-rw-r--r--ftnoir_protocol_sc/ftnoir_protocol_sc.cpp5
1 files changed, 1 insertions, 4 deletions
diff --git a/ftnoir_protocol_sc/ftnoir_protocol_sc.cpp b/ftnoir_protocol_sc/ftnoir_protocol_sc.cpp
index c9b0541a..c0e2fc02 100644
--- a/ftnoir_protocol_sc/ftnoir_protocol_sc.cpp
+++ b/ftnoir_protocol_sc/ftnoir_protocol_sc.cpp
@@ -28,7 +28,6 @@
********************************************************************************/
#include "ftnoir_protocol_sc.h"
#include "opentrack/plugin-api.hpp"
-#include "opentrack/thread.hpp"
FTNoIR_Protocol::FTNoIR_Protocol() : should_stop(false), hSimConnect(nullptr)
{
@@ -42,8 +41,6 @@ FTNoIR_Protocol::~FTNoIR_Protocol()
void FTNoIR_Protocol::run()
{
- Affinity thr;
-
(void) timeBeginPeriod(1);
while (!should_stop)
@@ -56,7 +53,7 @@ void FTNoIR_Protocol::run()
{
if (FAILED(simconnect_calldispatch(hSimConnect, processNextSimconnectEvent, reinterpret_cast<void*>(this))))
break;
- Sleep(3);
+ Sleep(16);
}
(void) simconnect_close(hSimConnect);