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 { 
    307307      if (!initInterpreter) {
    308308         initInterpreter = kTRUE;
    309309         gROOTLocal->InitInterpreter();
     310         // Load and init threads library
     311         gROOTLocal->InitThreads();
    310312      }
    311313      return gROOTLocal;
    312314   }
    TROOT::TROOT(const char *name, const char *title, VoidFuncPtr_t *initfunc) 
    565567      i++;
    566568   }
    567569
    568    // Load and init threads library
    569    InitThreads();
    570 
    571570   // Set initial/default list of browsable objects
    572571   fBrowsables->Add(fRootFolder, "root");
    573572   fBrowsables->Add(fProofs, "PROOF Sessions");
    void TROOT::InitThreads() 
    16311630      char *path;
    16321631      if ((path = gSystem->DynamicPathName("libThread", kTRUE))) {
    16331632         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         }
    16351638      }
    16361639   }
    16371640}