1 #ifndef IOPool_Streamer_EventBuffer_h
2 #define IOPool_Streamer_EventBuffer_h
38 #include "boost/thread/mutex.hpp"
39 #include "boost/thread/condition.hpp"
61 {
return b.getConsumerBuffer(); }
70 {
return b.getProducerBuffer(); }
117 typedef std::vector<void*>
Pool;
Buffer getConsumerBuffer()
OperateBuffer< ConsumerType > ConsumerBuffer
static void commit(EventBuffer &b, void *v, int size)
EventBuffer(int max_event_size, int max_queue_depth)
static boost::mutex mutex
OperateBuffer< ProducerType > ProducerBuffer
void commitProducerBuffer(void *, int)
static void release(EventBuffer &b, void *v)
EventBuffer(const EventBuffer &)
static void commit(EventBuffer &b, void *v, int size)
static void release(EventBuffer &b, void *v)
std::vector< void * > Pool
OperateBuffer(EventBuffer &b)
boost::condition pool_cond_
boost::condition push_cond_
boost::condition pop_cond_
Buffer getProducerBuffer()
std::vector< Buffer > Queue
void releaseConsumerBuffer(void *)
std::vector< char > ByteArray
void commitConsumerBuffer(void *, int)
volatile std::atomic< bool > shutdown_flag false
int maxQueueDepth() const
tuple size
Write out results.
T get(const Candidate &c)
void releaseProducerBuffer(void *)