Changeset 1895


Ignore:
Timestamp:
04/03/03 11:44:57 (21 years ago)
Author:
tbretz
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/mbase/MEvtLoop.cc

    r1880 r1895  
    106106{
    107107    fName = name;
     108
     109    *fLog << inf << "Instantiated MEvtLoop (" << name << "), using ROOT v" << ROOTVER << endl;
    108110}
    109111
  • trunk/MagicSoft/Mars/mbase/MLog.cc

    r1863 r1895  
    7777#include <stdlib.h>     // mkstempe
    7878#include <fstream.h>
     79#ifdef _REENTRANT
    7980#include <pthread.h>
     81#endif
    8082#include <TGListBox.h>
    8183
     
    102104    *this << '\0';
    103105
     106#ifdef _REENTRANT
    104107    //
    105108    // Creat drawing semaphore
     
    107110    fMuxGui = new pthread_mutex_t;
    108111    pthread_mutex_init((pthread_mutex_t*)fMuxGui, NULL);
     112#endif
    109113}
    110114
     
    160164{
    161165    DeallocateFile();
     166#ifdef _REENTRANT
    162167    pthread_mutex_destroy((pthread_mutex_t*)fMuxGui);
     168#endif
    163169}
    164170
     
    227233    Lock();
    228234
    229 //    cout << "/---------------------------------------" << endl;
    230 
    231235    for (int i=0; i<fNumLines; i++)
    232236    {
    233237        fgui->AddEntry(fGuiLines[i], fGuiLineId++);
    234 //        cout << fGuiLines[i] << endl;
    235238        delete fGuiLines[i];
    236239    }
    237240
    238241    delete fGuiLines;
    239 
    240 //    cout << "\\---------------------------------------" << endl;
    241242
    242243    fNumLines=0;
     
    251252void MLog::Lock()
    252253{
     254#ifdef _REENTRANT
    253255    pthread_mutex_lock((pthread_mutex_t*)fMuxGui);
     256#endif
    254257}
    255258
    256259void MLog::UnLock()
    257260{
     261#ifdef _REENTRANT
    258262    pthread_mutex_unlock((pthread_mutex_t*)fMuxGui);
     263#endif
    259264}
    260265
  • trunk/MagicSoft/Mars/mbase/MLog.h

    r1743 r1895  
    4444    Int_t     fNumLines;
    4545
     46#ifdef _REENTRANT
    4647    void *fMuxGui;            //! Mutex locking access of TGListBox
     48#endif
    4749
    4850    void Init();
  • trunk/MagicSoft/Mars/mfileio/MRead.cc

    r1880 r1895  
    7272        TString name = GetEnvValue(env, prefix, idx, "");
    7373        if (name.IsNull())
    74             return kTRUE;
     74            break;
    7575
    7676        if (name.BeginsWith("\"") && name.EndsWith("\""))
     
    8080        }
    8181
     82        if (print)
     83            *fLog << all << "Add File: " << name << endl;
    8284        AddFile(name);
    8385    }
  • trunk/MagicSoft/Mars/mhist/MHArray.cc

    r1883 r1895  
    278278// Default constructor. Use MHArray::Set to setup the MHArray afterwards
    279279//
    280 MHArray::MHArray(const char *name=NULL, const char *title=NULL)
     280MHArray::MHArray(const char *name, const char *title)
    281281    : fIdx(0), fClass(NULL), fTemplate(NULL), fTemplateName("<dummy>")
    282282{
  • trunk/MagicSoft/Mars/mhist/MHMatrix.cc

    r1891 r1895  
    10521052        TString name = GetEnvValue(env, prefix, idx, "");
    10531053        if (name.IsNull())
    1054             return kTRUE;
    1055 
    1056         /*
    1057         if (name.BeginsWith("\"") && name.EndsWith("\""))
    1058         {
    1059             name.Remove(name.Last('\"'), 1);
    1060             name.Remove(name.First('\"'), 1);
    1061         }
    1062         */
     1054            break;
    10631055
    10641056        if (print)
Note: See TracChangeset for help on using the changeset viewer.