summaryrefslogtreecommitdiffhomepage
path: root/ftnoir_protocol_ft/ftnoir_protocol_ft.cpp
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2015-10-03 11:46:14 +0200
committerStanislaw Halik <sthalik@misaki.pl>2015-10-03 11:46:14 +0200
commit8de96cff462fb55788058b09c3d0186eab04a6ca (patch)
tree2276a59e7a071da4a8dd8dc4731e2a350a6605c4 /ftnoir_protocol_ft/ftnoir_protocol_ft.cpp
parent5fa0eaa28ea3bf01b5bfc0a71b5ee901163bddbd (diff)
parent32e67f4ea87461624e74390b25f41aede618d5f0 (diff)
Merge branch 'unstable' into trackhat-ui
* unstable: ft: add locking back ft: change nonsensical frame step ft: don't alloc "int i" as bss ft: reformat cmake: simplify pose-widget: use bilinear filtering declutter clientfiles/
Diffstat (limited to 'ftnoir_protocol_ft/ftnoir_protocol_ft.cpp')
-rw-r--r--ftnoir_protocol_ft/ftnoir_protocol_ft.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/ftnoir_protocol_ft/ftnoir_protocol_ft.cpp b/ftnoir_protocol_ft/ftnoir_protocol_ft.cpp
index b38b0730..97caaefc 100644
--- a/ftnoir_protocol_ft/ftnoir_protocol_ft.cpp
+++ b/ftnoir_protocol_ft/ftnoir_protocol_ft.cpp
@@ -65,6 +65,8 @@ void FTNoIR_Protocol::pose(const double* headpose) {
FTHeap* ft = pMemData;
FTData* data = &ft->data;
+
+ shm.lock();
data->RawX = 0;
data->RawY = 0;
@@ -107,6 +109,8 @@ void FTNoIR_Protocol::pose(const double* headpose) {
}
data->DataID += 1;
+
+ shm.unlock();
}
void FTNoIR_Protocol::start_tirviews() {