22 #ifndef _SYNCPOINT_SYNCPOINT_MANAGER_H_ 23 #define _SYNCPOINT_SYNCPOINT_MANAGER_H_ 25 #include <core/threading/mutex.h> 26 #include <core/utils/refptr.h> 27 #include <logging/multi.h> 28 #include <syncpoint/syncpoint.h> 55 std::string find_prefix(
const std::string &identifier)
const;
57 const std::string &identifier);
58 void release_syncpoint_no_lock(
const std::string &component,
RefPtr<SyncPoint> syncpoint);
60 const std::string component)
const;
Fawkes library namespace.
RefPtr< SyncPoint > get_syncpoint(const std::string &component, const std::string &identifier)
Get a SyncPoint.
Log through multiple loggers.
This class gives access to SyncPoints.
std::set< RefPtr< SyncPoint >, SyncPointSetLessThan > syncpoints_
Set of all existing SyncPoints.
std::set< RefPtr< SyncPoint >, SyncPointSetLessThan > get_syncpoints()
Get the current list of all SyncPoints managed by this SyncPointManager.
Compare sets of syncpoints.
Mutex * mutex_
Mutex used for all SyncPointManager calls.
void release_syncpoint(const std::string &component, RefPtr< SyncPoint > syncpoint)
Release a SyncPoint.
Mutex mutual exclusion lock.
SyncPointManager(MultiLogger *logger)
Constructor.