Ticket #43989: patch-core-base-src-TROOT.cxx.diff
File patch-core-base-src-TROOT.cxx.diff, 1.1 KB (added by mojca (Mojca Miklavec), 10 years ago) |
---|
-
core/base/src/TROOT.cxx
old new namespace ROOT { 307 307 if (!initInterpreter) { 308 308 initInterpreter = kTRUE; 309 309 gROOTLocal->InitInterpreter(); 310 // Load and init threads library 311 gROOTLocal->InitThreads(); 310 312 } 311 313 return gROOTLocal; 312 314 } … … TROOT::TROOT(const char *name, const char *title, VoidFuncPtr_t *initfunc) 565 567 i++; 566 568 } 567 569 568 // Load and init threads library569 InitThreads();570 571 570 // Set initial/default list of browsable objects 572 571 fBrowsables->Add(fRootFolder, "root"); 573 572 fBrowsables->Add(fProofs, "PROOF Sessions"); … … void TROOT::InitThreads() 1631 1630 char *path; 1632 1631 if ((path = gSystem->DynamicPathName("libThread", kTRUE))) { 1633 1632 delete [] path; 1634 LoadClass("TThread", "Thread"); 1633 TInterpreter::EErrorCode code = TInterpreter::kNoError; 1634 fInterpreter->Calc("TThread::Initialize();", &code); 1635 if (code != TInterpreter::kNoError) { 1636 Error("InitThreads","Thread mechanism not initialization properly."); 1637 } 1635 1638 } 1636 1639 } 1637 1640 }