Classes | Namespaces

include/FCam/TSQueue.h File Reference

A basic thread-safe queue using pthread mutexes to wrap a C++ STL queue. More...

#include <deque>
#include <iterator>
#include <semaphore.h>
#include <pthread.h>
#include <errno.h>
#include <string.h>
Include dependency graph for TSQueue.h:

Go to the source code of this file.

Classes

class  FCam::TSQueue< T >
 Basic thread-safe consumer/producer queue. More...

Namespaces

namespace  FCam
 

Main namespace for the API.



Detailed Description

A basic thread-safe queue using pthread mutexes to wrap a C++ STL queue.

Convenient to use for devices, etc, if they need a background control thread. This could probably be done with no locks, since it's just mostly used as a producer-consumer queue. But this way we don't have to worry about it, and lock contention has not appeared to be a problem yet.

Definition in file TSQueue.h.