Changeset 1895 for trunk/MagicSoft/Mars/mbase
- Timestamp:
- 04/03/03 11:44:57 (22 years ago)
- Location:
- trunk/MagicSoft/Mars/mbase
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mbase/MEvtLoop.cc
r1880 r1895 106 106 { 107 107 fName = name; 108 109 *fLog << inf << "Instantiated MEvtLoop (" << name << "), using ROOT v" << ROOTVER << endl; 108 110 } 109 111 -
trunk/MagicSoft/Mars/mbase/MLog.cc
r1863 r1895 77 77 #include <stdlib.h> // mkstempe 78 78 #include <fstream.h> 79 #ifdef _REENTRANT 79 80 #include <pthread.h> 81 #endif 80 82 #include <TGListBox.h> 81 83 … … 102 104 *this << '\0'; 103 105 106 #ifdef _REENTRANT 104 107 // 105 108 // Creat drawing semaphore … … 107 110 fMuxGui = new pthread_mutex_t; 108 111 pthread_mutex_init((pthread_mutex_t*)fMuxGui, NULL); 112 #endif 109 113 } 110 114 … … 160 164 { 161 165 DeallocateFile(); 166 #ifdef _REENTRANT 162 167 pthread_mutex_destroy((pthread_mutex_t*)fMuxGui); 168 #endif 163 169 } 164 170 … … 227 233 Lock(); 228 234 229 // cout << "/---------------------------------------" << endl;230 231 235 for (int i=0; i<fNumLines; i++) 232 236 { 233 237 fgui->AddEntry(fGuiLines[i], fGuiLineId++); 234 // cout << fGuiLines[i] << endl;235 238 delete fGuiLines[i]; 236 239 } 237 240 238 241 delete fGuiLines; 239 240 // cout << "\\---------------------------------------" << endl;241 242 242 243 fNumLines=0; … … 251 252 void MLog::Lock() 252 253 { 254 #ifdef _REENTRANT 253 255 pthread_mutex_lock((pthread_mutex_t*)fMuxGui); 256 #endif 254 257 } 255 258 256 259 void MLog::UnLock() 257 260 { 261 #ifdef _REENTRANT 258 262 pthread_mutex_unlock((pthread_mutex_t*)fMuxGui); 263 #endif 259 264 } 260 265 -
trunk/MagicSoft/Mars/mbase/MLog.h
r1743 r1895 44 44 Int_t fNumLines; 45 45 46 #ifdef _REENTRANT 46 47 void *fMuxGui; //! Mutex locking access of TGListBox 48 #endif 47 49 48 50 void Init();
Note:
See TracChangeset
for help on using the changeset viewer.