28using std::vector, std::cout, std::endl;
57 cout <<
"ThreadPool: starting..." << endl;
69 cout <<
"ThreadPool: getting tasks..." << endl;
70 cout <<
"ThreadPool: processing tasks..." << endl;
73 for (
size_t i = 0; i <
numTasks; ++i) {
81 cout <<
"ThreadPool: done" << endl;
ROOT::Detail::TRangeCast< T, true > TRangeDynCast
TRangeDynCast is an adapter class that allows the typed iteration through a TCollection.
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.