Ignore:
Timestamp:
04/03/03 11:44:57 (22 years ago)
Author:
tbretz
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars/mbase
Files:
3 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();
Note: See TracChangeset for help on using the changeset viewer.