23 #include <core/threading/thread.h>
32 namespace firevision {
52 const unsigned char *
buffer(std::string name)
53 {
return __buffers[
name]; }
56 std::map<std::string, firevision::Camera *> __cams;
57 std::map<std::string, unsigned char *> __buffers;
58 std::map<std::string, size_t> __buffer_sizes;
void add_camera(std::string name, firevision::Camera *cam)
Add a camera from which to pull images.
void loop()
Code to execute in the thread.
Camera interface for image aquiring devices in FireVision.
Thread class encapsulation of pthreads.
~PclViewerTransferThread()
Destructor.
Read/write lock to allow multiple readers but only a single writer on the resource at a time...
const char * name() const
Get name of thread.
const unsigned char * buffer(std::string name)
Get buffer for specified camera.
PCL viewer transfer thread.
PclViewerTransferThread()
Constructor.
void lock_for_read()
Lock for reading.