Usage:
ROOT::Detail::TRangeCast< T, true > TRangeDynCast
TRangeDynCast is an adapter class that allows the typed iteration through a TCollection.
#include <iostream>
#include <iterator>
#include <vector>
#ifndef _WIN32
#include <unistd.h>
#endif
using std::vector, std::cout, std::endl;
enum EProc {start, clean};
{
public:
return true;
}
}
private:
};
{
cout << "ThreadPool: starting..." << endl;
cout << "ThreadPool: getting tasks..." << endl;
cout << "ThreadPool: processing tasks..." << endl;
}
cout << "ThreadPool: done" << endl;
}
static Int_t Sleep(ULong_t secs, ULong_t nanos=0)
Static method to sleep the calling thread.
static Long_t SelfId()
Static method returning the id for the current thread.
- Author
- Victor Perevovchikov
Definition in file threadPool.C.