34 #include <Base/Common/ProgressSemaphorePool.hh>
35 #include <Base/Common/ProgressSemaphore.hh>
41 int main(
int argc,
char *argv[])
48 vector<string> allnames;
51 for (
unsigned int i=0;i<allnames.size();i++)
52 cout <<
"registered: "<<allnames[i]<<endl;
56 cout <<
"foo has finished: "<<foo->
GetProgress()<<endl;
float GetProgress()
returns current progress state in standard intervall
pointer with reference count and automatic deletion
void SetNumSteps(unsigned int steps)
Set the number of steps to progress will need to complete.
void SetCurrentStep(unsigned int CurrentStep)
Set the current step.
void GetAllSemaphoreNames(std::vector< std::string > &names)
SharedPtr< ProgressSemaphore > Register(const std::string &name)