1 #ifndef CARMA_LINELENGTH_FIBERIFTHREAD_H
2 #define CARMA_LINELENGTH_FIBERIFTHREAD_H
4 #include <carma/util/PthreadMutex.h>
6 #include <boost/circular_buffer.hpp>
7 #include <boost/shared_ptr.hpp>
12 namespace linelength {
18 std::vector<double> pol1;
20 std::vector<double> pol2;
23 typedef boost::shared_ptr<struct FiberIFData> FiberIFDataPtr;
28 FiberIFThread(
const std::string &device);
32 static void thread(FiberIFThread &This) { This.run(); };
38 FiberIFDataPtr getData();
42 const std::string device_;
46 boost::circular_buffer<FiberIFDataPtr> buffer_;
52 #endif // CARMA_LINELENGTH_FIBERIFTHREAD_H
A simple wrapper class that makes use of ::pthread_mutex_t easier in a C++ world. ...