using std::mutex over boost, debug prints for touch input in touchmodule

This commit is contained in:
Jonathan Bosson
2017-02-18 22:11:48 -07:00
parent 92b480f708
commit 2d223dc250
5 changed files with 74 additions and 50 deletions
+3 -2
View File
@@ -31,7 +31,7 @@
#include <modules/touch/ext/libTUIO2/TUIO2/TcpReceiver.h>
#include <math.h>
#include <vector>
#include <boost/thread/mutex.hpp>
#include <mutex>
using namespace TUIO2;
@@ -52,13 +52,14 @@ class TuioEar : public TuioListener {
std::vector<TuioObject*> getInput();
void clearInput();
void unlock() { _mx.unlock(); };
private:
TuioClient *_tuioClient;
OscReceiver *_oscReceiver;
std::vector<TuioObject*> _list;
boost::mutex _mx;
std::mutex _mx;
};
#endif // __OPENSPACE_MODULE_TOUCH___TOUCHWRAPPER___H__