14 #include <carma/util/PthreadMutex.h>
16 #include <boost/shared_ptr.hpp>
24 class ProjectDatabaseManagerSubsystem;
29 namespace observertools {
38 void updateDBInfo(
const PDB_DB_Params &db);
39 void setCurrentMethod(
const std::string &method);
40 void writeToMonitorSystem(carma::monitor::ProjectDatabaseManagerSubsystem &mon)
const;
43 struct PDB_Server_Info {
52 std::vector<PDB_Server_Info> serverInfo_;
54 std::string currentMethod_;
55 double currentMethodStart_;
60 typedef boost::shared_ptr<PDB_Monitor> PDB_Monitor_Ptr;
62 class PDB_Scoped_Monitor {
64 PDB_Scoped_Monitor(
const PDB_Monitor_Ptr mon,
const std::string &method);
65 ~PDB_Scoped_Monitor();
67 const PDB_Monitor_Ptr mon_;
A simple wrapper class that makes use of ::pthread_mutex_t easier in a C++ world. ...