diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2015-07-05 18:55:16 +0200 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2015-07-05 18:55:16 +0200 |
commit | a474a67b4b4af477be3d4497dfb128546c8261f3 (patch) | |
tree | 3b3675ed29114b368e3850368d3ca183a49ed78f /ftnoir_protocol_sc | |
parent | 6468223986ede1b1b64581dd37fed11724788a2b (diff) |
simconnect: use affinity
Diffstat (limited to 'ftnoir_protocol_sc')
-rw-r--r-- | ftnoir_protocol_sc/ftnoir_protocol_sc.cpp | 3 |
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 |