#include <ptr_dispatcher.hh>
- Author
- cpellegrino
Definition at line 12 of file ptr_dispatcher.hh.
◆ ptrDispatcher()
| ptrDispatcher::ptrDispatcher |
( |
| ) |
|
|
inline |
Definition at line 24 of file ptr_dispatcher.hh.
25 :
27 {
28 pthread_mutex_init(&
m_mutex, 0);
29 pthread_cond_init (&
m_cond, 0);
30 }
boost::atomic< bool > m_status
◆ ~ptrDispatcher()
| ptrDispatcher::~ptrDispatcher |
( |
| ) |
|
|
inline |
◆ close()
| void ptrDispatcher::close |
( |
| ) |
|
|
inline |
◆ signal()
| void ptrDispatcher::signal |
( |
| ) |
|
|
inline |
◆ lock()
| void ptrDispatcher::lock |
( |
| ) |
|
|
inline |
◆ unlock()
| void ptrDispatcher::unlock |
( |
| ) |
|
|
inline |
◆ get_nolock()
| void * ptrDispatcher::get_nolock |
( |
| ) |
|
|
inline |
Definition at line 62 of file ptr_dispatcher.hh.
63 {
65 {
66 return 0;
67 }
68
69 void* pointer =
m_queue.front();
71 return pointer;
72 }
std::deque< void * > m_queue
◆ get()
| void * ptrDispatcher::get |
( |
| ) |
|
|
inline |
Definition at line 74 of file ptr_dispatcher.hh.
75 {
77 {
78 return 0;
79 }
80
83
84 void* pointer = 0;
85
87 {
90 }
91
93 return pointer;
94 }
◆ put_nolock()
| void ptrDispatcher::put_nolock |
( |
void * | pointer | ) |
|
|
inline |
◆ put()
| void ptrDispatcher::put |
( |
void * | pointer | ) |
|
|
inline |
◆ wait()
| void ptrDispatcher::wait |
( |
| ) |
|
|
inlineprivate |
◆ m_queue
| std::deque<void*> ptrDispatcher::m_queue |
|
private |
◆ m_mutex
| pthread_mutex_t ptrDispatcher::m_mutex |
|
private |
◆ m_cond
| pthread_cond_t ptrDispatcher::m_cond |
|
private |
◆ m_status
| boost::atomic<bool> ptrDispatcher::m_status |
|
private |
The documentation for this class was generated from the following file: