summaryrefslogtreecommitdiff
path: root/NitrokeyManager.cc
diff options
context:
space:
mode:
authorSzczepan Zalega <szczepan@nitrokey.com>2017-09-15 16:34:11 +0200
committerSzczepan Zalega <szczepan@nitrokey.com>2017-09-20 12:47:46 +0200
commitff1f2248b830ad78833e347be8d8c8dc9cb03c85 (patch)
tree8d22aa095ffdca75ca9fb4048ed61433370ccaa3 /NitrokeyManager.cc
parent2e446c208e3522ff3b7a38eec40368fe15528a80 (diff)
downloadlibnitrokey-ff1f2248b830ad78833e347be8d8c8dc9cb03c85.tar.gz
libnitrokey-ff1f2248b830ad78833e347be8d8c8dc9cb03c85.tar.bz2
Correct mutex placement
Move mutex from template instantation to single compilation unit to make it work as desired Signed-off-by: Szczepan Zalega <szczepan@nitrokey.com>
Diffstat (limited to 'NitrokeyManager.cc')
-rw-r--r--NitrokeyManager.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/NitrokeyManager.cc b/NitrokeyManager.cc
index 9a9d106..7985eb3 100644
--- a/NitrokeyManager.cc
+++ b/NitrokeyManager.cc
@@ -10,6 +10,8 @@
#include "include/cxx_semantics.h"
#include <functional>
+std::mutex nitrokey::proto::send_receive_mtx;
+
namespace nitrokey{
std::mutex mex_dev_com_manager;