Changeset 1895 for trunk/MagicSoft
- Timestamp:
- 04/03/03 11:44:57 (22 years ago)
- Location:
- trunk/MagicSoft/Mars
- Files:
-
- 6 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(); -
trunk/MagicSoft/Mars/mfileio/MRead.cc
r1880 r1895 72 72 TString name = GetEnvValue(env, prefix, idx, ""); 73 73 if (name.IsNull()) 74 return kTRUE;74 break; 75 75 76 76 if (name.BeginsWith("\"") && name.EndsWith("\"")) … … 80 80 } 81 81 82 if (print) 83 *fLog << all << "Add File: " << name << endl; 82 84 AddFile(name); 83 85 } -
trunk/MagicSoft/Mars/mhist/MHArray.cc
r1883 r1895 278 278 // Default constructor. Use MHArray::Set to setup the MHArray afterwards 279 279 // 280 MHArray::MHArray(const char *name =NULL, const char *title=NULL)280 MHArray::MHArray(const char *name, const char *title) 281 281 : fIdx(0), fClass(NULL), fTemplate(NULL), fTemplateName("<dummy>") 282 282 { -
trunk/MagicSoft/Mars/mhist/MHMatrix.cc
r1891 r1895 1052 1052 TString name = GetEnvValue(env, prefix, idx, ""); 1053 1053 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; 1063 1055 1064 1056 if (print)
Note:
See TracChangeset
for help on using the changeset viewer.