1 #ifndef PTR_DISPATCHER_HH
2 #define PTR_DISPATCHER_HH
6 #include <boost/atomic.hpp>
28 pthread_mutex_init(&
m_mutex, 0);
29 pthread_cond_init (&
m_cond, 0);
35 pthread_mutex_destroy(&
m_mutex);
36 pthread_cond_destroy(&
m_cond);
49 pthread_cond_signal(&
m_cond);
69 void* pointer =
m_queue.front();
130 #endif // PTR_DISPATCHER_HH
boost::atomic< bool > m_status
std::deque< void * > m_queue
void put_nolock(void *pointer)