Fawkes API
Fawkes Development Version
|
#include <>>
Public Member Functions | |
LockList () | |
Constructor. More... | |
LockList (const LockList< Type > &ll) | |
Copy constructor. More... | |
virtual | ~LockList () |
Destructor. More... | |
virtual void | lock () const |
Lock list. More... | |
virtual bool | try_lock () const |
Try to lock list. More... | |
virtual void | unlock () const |
Unlock list. More... | |
RefPtr< Mutex > | mutex () const |
Get access to the internal mutex. More... | |
void | push_back_locked (const Type &x) |
Push element to list at back with lock protection. More... | |
void | push_front_locked (const Type &x) |
Push element to list at front with lock protection. More... | |
void | remove_locked (const Type &x) |
Remove element from list with lock protection. More... | |
LockList< Type > & | operator= (const LockList< Type > &ll) |
Copy values from another LockList. More... | |
LockList< Type > & | operator= (const std::list< Type > &l) |
Copy values from a standard list. More... | |
List with a lock. This class provides a list that has an intrinsic lock. The lock can be applied with the regular locking methods.
fawkes::LockList< Type >::LockList | ( | ) |
Constructor.
Definition at line 117 of file lock_list.h.
fawkes::LockList< Type >::LockList | ( | const LockList< Type > & | ll | ) |
|
inlinevirtual |
Destructor.
Definition at line 60 of file lock_list.h.
|
virtual |
Lock list.
Definition at line 128 of file lock_list.h.
Referenced by fawkes::ConfigNetworkHandler::client_connected(), fawkes::ConfigNetworkHandler::config_comment_changed(), fawkes::PluginManager::config_comment_changed(), fawkes::PluginManager::config_tag_changed(), FvBaseThread::finalize(), fawkes::LockList< ClientData >::LockList(), fawkes::PluginNetworkHandler::loop(), fawkes::LockList< ClientData >::mutex(), FvBaseThread::release_camctrl(), fawkes::PluginManager::set_module_flags(), and fawkes::LockList< ClientData >::unlock().
RefPtr< Mutex > fawkes::LockList< Type >::mutex | ( | ) | const |
Get access to the internal mutex.
Can be used with MutexLocker.
Definition at line 176 of file lock_list.h.
Referenced by fawkes::BlackBoardInterfaceListMaintainer::BlackBoardInterfaceListMaintainer(), NavGraphClustersThread::blocked_edges_centroids(), LaserPointCloudThread::loop(), fawkes::OpenPRSServerProxy::transmit_command(), fawkes::OpenPRSServerProxy::transmit_command_f(), fawkes::OpenPRSServerProxy::transmit_command_v(), and fawkes::BlackBoardInterfaceListMaintainer::~BlackBoardInterfaceListMaintainer().
LockList< Type > & fawkes::LockList< Type >::operator= | ( | const LockList< Type > & | ll | ) |
Copy values from another LockList.
Copies the values one by one. Both instances are locked during the copying and this instance is cleared before copying.
ll | list to copy |
Definition at line 183 of file lock_list.h.
LockList< Type > & fawkes::LockList< Type >::operator= | ( | const std::list< Type > & | l | ) |
Copy values from a standard list.
Copies the values one by one. This instance is locked during the copying and cleared.
l | list to copy |
Definition at line 200 of file lock_list.h.
void fawkes::LockList< Type >::push_back_locked | ( | const Type & | x | ) |
Push element to list at back with lock protection.
x | element to add |
Definition at line 149 of file lock_list.h.
Referenced by fawkes::ConfigNetworkHandler::loop().
void fawkes::LockList< Type >::push_front_locked | ( | const Type & | x | ) |
Push element to list at front with lock protection.
x | element to add |
Definition at line 158 of file lock_list.h.
void fawkes::LockList< Type >::remove_locked | ( | const Type & | x | ) |
Remove element from list with lock protection.
x | element to remove |
Definition at line 167 of file lock_list.h.
Referenced by fawkes::PluginNetworkHandler::client_connected(), fawkes::NetworkLogger::client_connected(), and fawkes::PluginNetworkHandler::loop().
|
virtual |
Try to lock list.
Definition at line 135 of file lock_list.h.
Referenced by fawkes::LockList< ClientData >::lock().
|
virtual |
Unlock list.
Definition at line 142 of file lock_list.h.
Referenced by FvBaseThread::finalize(), fawkes::PluginNetworkHandler::loop(), FvBaseThread::release_camctrl(), fawkes::LockList< ClientData >::try_lock(), and fawkes::BlackBoardInterfaceListMaintainer::unlock_list().