Fawkes API
Fawkes Development Version
|
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;
Mutex * mutex_
Mutex used for all SyncPointManager calls.
This class gives access to SyncPoints.
Mutex mutual exclusion lock.
Log through multiple loggers.
std::set< RefPtr< SyncPoint >, SyncPointSetLessThan > syncpoints_
Set of all existing SyncPoints.
RefPtr< SyncPoint > get_syncpoint(const std::string &component, const std::string &identifier)
Get a SyncPoint.
Fawkes library namespace.
Compare sets of syncpoints.
SyncPointManager(MultiLogger *logger)
Constructor.
std::set< RefPtr< SyncPoint >, SyncPointSetLessThan > get_syncpoints()
Get the current list of all SyncPoints managed by this SyncPointManager.
void release_syncpoint(const std::string &component, RefPtr< SyncPoint > syncpoint)
Release a SyncPoint.