17 #ifndef _GAZEBO_MODELDATABSE_PRIVATE_HH_
18 #define _GAZEBO_MODELDATABSE_PRIVATE_HH_
24 #include <boost/function.hpp>
25 #include <boost/thread.hpp>
26 #include <boost/thread/mutex.hpp>
64 public:
typedef boost::function<
boost::function< void(const std::map< std::string, std::string > &)> CallbackFunc
Definition: ModelDatabasePrivate.hh:65
boost::condition_variable updateCacheCompleteCondition
Condition variable for completion of one cache update.
Definition: ModelDatabasePrivate.hh:60
event::EventT< void(std::map< std::string, std::string >)> modelDBUpdated
Triggered when the model data has been updated after calling ModelDatabase::GetModels() ...
Definition: ModelDatabasePrivate.hh:70
boost::mutex callbacksMutex
Protects callback list.
Definition: ModelDatabasePrivate.hh:51
bool stop
True to stop the background thread.
Definition: ModelDatabasePrivate.hh:45
boost::recursive_mutex startCacheMutex
Mutex to protect cache thread status checks.
Definition: ModelDatabasePrivate.hh:54
Private class attributes for ModelDatabase.
Definition: ModelDatabasePrivate.hh:36
#define GZ_COMMON_VISIBLE
Definition: system.hh:84
boost::condition_variable updateCacheCondition
Condition variable for the updateCacheThread.
Definition: ModelDatabasePrivate.hh:57
std::map< std::string, std::string > modelCache
A dictionary of all model names indexed by their uri.
Definition: ModelDatabasePrivate.hh:42
boost::thread * updateCacheThread
Thread to update the model cache.
Definition: ModelDatabasePrivate.hh:39
boost::mutex updateMutex
Cache update mutex.
Definition: ModelDatabasePrivate.hh:48
A class for event processing.
Definition: Event.hh:181