39 #ifndef ORO_LOCKED_QUEUE_HPP 40 #define ORO_LOCKED_QUEUE_HPP 43 #include "../os/Mutex.hpp" 44 #include "../os/MutexLock.hpp" 64 typedef typename BufferType::iterator
Iterator;
65 typedef typename BufferType::const_iterator
CIterator;
115 return data.size() ==
cap;
133 if (cap == data.size() )
135 data.push_back(value);
151 result = data.front();
BufferType::const_iterator CIterator
bool enqueue(const T &value)
size_type capacity() const
LockedQueue(unsigned int lsize)
std::deque< value_t > BufferType
An object oriented wrapper around a non recursive mutex.
BufferType::iterator Iterator
Contains TaskContext, Activity, OperationCaller, Operation, Property, InputPort, OutputPort, Attribute.
MutexLock is a scope based Monitor, protecting critical sections with a Mutex object through locking ...