summaryrefslogtreecommitdiffhomepage
path: root/ftnoir_protocol_sc
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2015-07-05 18:55:16 +0200
committerStanislaw Halik <sthalik@misaki.pl>2015-07-05 18:55:16 +0200
commita474a67b4b4af477be3d4497dfb128546c8261f3 (patch)
tree3b3675ed29114b368e3850368d3ca183a49ed78f /ftnoir_protocol_sc
parent6468223986ede1b1b64581dd37fed11724788a2b (diff)
simconnect: use affinity
Diffstat (limited to 'ftnoir_protocol_sc')
-rw-r--r--ftnoir_protocol_sc/ftnoir_protocol_sc.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/ftnoir_protocol_sc/ftnoir_protocol_sc.cpp b/ftnoir_protocol_sc/ftnoir_protocol_sc.cpp
index d6df58f0..f545e89b 100644
--- a/ftnoir_protocol_sc/ftnoir_protocol_sc.cpp
+++ b/ftnoir_protocol_sc/ftnoir_protocol_sc.cpp
@@ -28,6 +28,7 @@
********************************************************************************/
#include "ftnoir_protocol_sc.h"
#include "opentrack/plugin-api.hpp"
+#include "opentrack/thread.hpp"
FTNoIR_Protocol::FTNoIR_Protocol() : should_stop(false), hSimConnect(nullptr)
{
@@ -41,6 +42,8 @@ FTNoIR_Protocol::~FTNoIR_Protocol()
void FTNoIR_Protocol::run()
{
+ Affinity thr;
+
if (!SUCCEEDED(simconnect_open(&hSimConnect, "FaceTrackNoIR", NULL, 0, 0, 0)))
return;
#if 0