Fawkes API Fawkes Development Version
|
Queue with a lock. More...
#include <>>
Public Member Functions | |
LockQueue () | |
Constructor. More... | |
LockQueue (const LockQueue< Type > &ll) | |
Copy constructor. More... | |
virtual | ~LockQueue () |
Destructor. More... | |
void | lock () const |
Lock queue. More... | |
bool | try_lock () const |
Try to lock queue. More... | |
void | unlock () const |
Unlock list. More... | |
RefPtr< Mutex > | mutex () const |
Get access to the internal mutex. More... | |
void | push_locked (const Type &x) |
Push element to queue with lock protection. More... | |
void | pop_locked () |
Pop element from queue with lock protection. More... | |
void | clear () |
Clear the queue. More... | |
Queue with a lock.
This class provides a queue that has an intrinsic lock. The lock can be applied with the regular locking methods.
Definition at line 44 of file lock_queue.h.
fawkes::LockQueue< Type >::LockQueue |
Constructor.
Definition at line 97 of file lock_queue.h.
fawkes::LockQueue< Type >::LockQueue | ( | const LockQueue< Type > & | ll | ) |
|
virtual |
Destructor.
Definition at line 108 of file lock_queue.h.
void fawkes::LockQueue< Type >::clear |
Clear the queue.
Definition at line 153 of file lock_queue.h.
Referenced by FuseTransferWidget::FuseTransferWidget(), BBLoggerThread::init(), fawkes::BlackBoardNetworkHandler::~BlackBoardNetworkHandler(), and fawkes::ConfigNetworkHandler::~ConfigNetworkHandler().
void fawkes::LockQueue< Type >::lock |
Lock queue.
Definition at line 114 of file lock_queue.h.
Referenced by firevision::FuseClient::loop(), fawkes::FawkesNetworkServerThread::loop(), SkillerExecutionThread::loop(), fawkes::ConnectionDispatcher::on_message_received(), fawkes::FawkesNetworkClientRecvThread::recv(), firevision::FuseNetworkTransceiver::recv(), fawkes::FawkesNetworkTransceiver::recv(), firevision::FuseNetworkTransceiver::send(), fawkes::FawkesNetworkTransceiver::send(), and FuseTransferWidget::~FuseTransferWidget().
|
inline |
Get access to the internal mutex.
Can be used with MutexLocker.
Definition at line 74 of file lock_queue.h.
Referenced by oprs_protobuf::OpenPRSProtobuf::oprs_pb_events_pending(), and oprs_protobuf::OpenPRSProtobuf::oprs_pb_process().
void fawkes::LockQueue< Type >::pop_locked |
Pop element from queue with lock protection.
Definition at line 144 of file lock_queue.h.
Referenced by fawkes::BlackBoardNetworkHandler::loop(), fawkes::ConfigNetworkHandler::loop(), and fawkes::PluginNetworkHandler::loop().
void fawkes::LockQueue< Type >::push_locked | ( | const Type & | x | ) |
Push element to queue with lock protection.
x | element to add |
Definition at line 135 of file lock_queue.h.
Referenced by FuseTransferWidget::add_fountain_service(), fawkes::FawkesNetworkServerThread::dispatch(), firevision::FuseClient::enqueue(), firevision::FuseClient::enqueue_and_wait(), FuseTransferWidget::fuse_connection_died(), fawkes::BlackBoardNetworkHandler::handle_network_message(), fawkes::ConfigNetworkHandler::handle_network_message(), fawkes::PluginNetworkHandler::handle_network_message(), fawkes::AvahiThread::unwatch_service(), fawkes::AvahiThread::watch_service(), and FuseTransferWidget::~FuseTransferWidget().
bool fawkes::LockQueue< Type >::try_lock |
Try to lock queue.
Definition at line 121 of file lock_queue.h.
void fawkes::LockQueue< Type >::unlock |
Unlock list.
Definition at line 128 of file lock_queue.h.
Referenced by firevision::FuseClient::loop(), fawkes::FawkesNetworkServerThread::loop(), SkillerExecutionThread::loop(), fawkes::ConnectionDispatcher::on_message_received(), fawkes::FawkesNetworkClientRecvThread::recv(), firevision::FuseNetworkTransceiver::recv(), fawkes::FawkesNetworkTransceiver::recv(), firevision::FuseNetworkTransceiver::send(), fawkes::FawkesNetworkTransceiver::send(), and FuseTransferWidget::~FuseTransferWidget().