1 #ifndef __ProgressSemaphorePool_hh__
2 #define __ProgressSemaphorePool_hh__
5 #include <bias_config.h>
7 #include <Base/Common/Singleton.hh>
8 #include <Base/Common/SharedPtr.hh>
33 void GetAllSemaphoreNames(std::vector<std::string> &names);
40 float GetOverallProgress();
46 bool Exists(
const std::string &name);
55 std::map<std::string, SharedPtr<ProgressSemaphore> >
Semaphores_;
62 #endif // __ProgressSemaphorePool_hh__
std::map< std::string, SharedPtr< ProgressSemaphore > > Semaphores_
pointer with reference count and automatic deletion
this class represents a progress counter which multiple processes can use.
Simple singleton implementation for multithreaded applications.