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