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::LockList | ( | ) |
Constructor.
Definition at line 119 of file lock_list.h.
fawkes::LockList::LockList | ( | const LockList< Type > & | ll | ) |
|
inlinevirtual |
Destructor.
Definition at line 62 of file lock_list.h.
|
virtual |
Lock list.
Definition at line 130 of file lock_list.h.
Referenced by fawkes::ConfigNetworkHandler::client_connected(), fawkes::ConfigNetworkHandler::config_comment_changed(), fawkes::PluginManager::config_comment_changed(), fawkes::ConfigNetworkHandler::config_tag_changed(), fawkes::PluginManager::config_tag_changed(), fawkes::PluginManager::fam_event(), FvBaseThread::finalize(), fawkes::LockList< Mapping::Ptr >::LockList(), fawkes::LockList< Mapping::Ptr >::mutex(), fawkes::LockList< Mapping::Ptr >::push_back_locked(), fawkes::LockList< Mapping::Ptr >::push_front_locked(), FvBaseThread::release_camctrl(), fawkes::PluginManager::set_module_flags(), and fawkes::LockList< Mapping::Ptr >::unlock().
Get access to the internal mutex.
Can be used with MutexLocker.
Definition at line 178 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().
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 185 of file lock_list.h.
Referenced by fawkes::ThreadList::~ThreadList().
LockList< Type > & fawkes::LockList::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 202 of file lock_list.h.
void fawkes::LockList::push_back_locked | ( | const Type & | x | ) |
Push element to list at back with lock protection.
x | element to add |
Definition at line 151 of file lock_list.h.
Referenced by fawkes::ConfigNetworkHandler::loop().
void fawkes::LockList::push_front_locked | ( | const Type & | x | ) |
Push element to list at front with lock protection.
x | element to add |
Definition at line 160 of file lock_list.h.
void fawkes::LockList::remove_locked | ( | const Type & | x | ) |
Remove element from list with lock protection.
x | element to remove |
Definition at line 169 of file lock_list.h.
Referenced by fawkes::PluginNetworkHandler::client_connected(), and fawkes::NetworkLogger::client_connected().
|
virtual |
Try to lock list.
Definition at line 137 of file lock_list.h.
Referenced by fawkes::LockList< Mapping::Ptr >::lock().
|
virtual |
Unlock list.
Definition at line 144 of file lock_list.h.
Referenced by fawkes::PluginManager::fam_event(), FvBaseThread::finalize(), FvBaseThread::release_camctrl(), fawkes::LockList< Mapping::Ptr >::try_lock(), and fawkes::BlackBoardInterfaceListMaintainer::unlock_list().