Changeset 3927 for trunk/MagicSoft/Mars/mbase
- Timestamp:
- 05/01/04 16:33:16 (21 years ago)
- Location:
- trunk/MagicSoft/Mars/mbase
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mbase/MLog.cc
r2784 r3927 359 359 360 360 // lock mutex 361 Lock( );361 Lock("UpdateGui"); 362 362 363 363 TGText &txt=*fGui->GetText(); … … 387 387 388 388 // release mutex 389 UnLock( );390 } 391 392 void MLog::Lock( )389 UnLock("UpdateGui"); 390 } 391 392 void MLog::Lock(const char *msg) 393 393 { 394 394 #ifdef _REENTRANT 395 fMuxGui->Lock(); 395 if (fMuxGui->Lock()==13) 396 Error("Lock", "%s - mutex is already locked by this thread\n", msg); 396 397 #endif 397 398 } 398 399 399 void MLog::UnLock( )400 void MLog::UnLock(const char *msg) 400 401 { 401 402 #ifdef _REENTRANT 402 fMuxGui->UnLock(); 403 if (fMuxGui->UnLock()==13) 404 Error("UnLock", "%s - tried to unlock mutex locked by other thread\n", msg); 403 405 #endif 404 406 } … … 410 412 int MLog::sync() 411 413 { 412 Lock( );414 Lock("sync"); 413 415 WriteBuffer(); 414 UnLock( );416 UnLock("sync"); 415 417 416 418 if (fDevice&eStdout) … … 446 448 if (fOutputLevel <= fDebugLevel) 447 449 { 448 Lock( );450 Lock("overflow"); 449 451 450 452 *fPPtr++ = (char)i; … … 453 455 WriteBuffer(); 454 456 455 UnLock( );457 UnLock("overflow"); 456 458 } 457 459 -
trunk/MagicSoft/Mars/mbase/MLog.h
r3183 r3927 102 102 ~MLog(); 103 103 104 void Lock( );105 void UnLock( );104 void Lock(const char *msg); 105 void UnLock(const char *msg); 106 106 107 107 void EnableDirectGui() { fIsDirectGui = kTRUE; } -
trunk/MagicSoft/Mars/mbase/Makefile
r3581 r3927 1 1 ################################################################## 2 2 # 3 # makefile3 # subdirectory makefile 4 4 # 5 5 # for the MARS software 6 6 # 7 7 ################################################################## 8 # @maintitle9 10 # @code11 12 #13 # please change all system depend values in the14 # config.mk.${OSTYPE} file15 #16 #17 8 include ../Makefile.conf.$(OSTYPE) 18 9 include ../Makefile.conf.general 19 10 20 # @endcode11 #------------------------------------------------------------------------------ 21 12 22 13 INCLUDES = -I. -I../mfileio -I../mfbase -I../mastro … … 25 16 # mastro: MAstro (MTime) 26 17 27 # @code 28 29 CINT = Base 30 LIB = mbase.a 31 32 #------------------------------------------------------------------------------ 33 34 .SUFFIXES: .c .cc .cxx .h .hxx .o 18 CINT = Base 35 19 36 20 SRCFILES = MLogo.cc \ … … 49 33 MFilter.cc \ 50 34 MEvtLoop.cc \ 51 MStatusDisplay.cc \52 35 MProgressBar.cc \ 53 36 MSearch.cc \ … … 70 53 MPrint.cc 71 54 72 SRCS = $(SRCFILES)73 HEADERS = $(SRCFILES:.cc=.h)74 OBJS = $(SRCFILES:.cc=.o)75 76 55 ############################################################ 77 56 78 all: $( LIB)57 all: $(OBJS) 79 58 80 59 include ../Makefile.rules 81 60 82 #clean: rmcint rmobjs rmcore rmlib83 84 61 mrproper: clean rmbak 85 86 # @endcode
Note:
See TracChangeset
for help on using the changeset viewer.