Changeset 3217 in Sophya


Ignore:
Timestamp:
Apr 12, 2007, 3:52:20 PM (18 years ago)
Author:
ansari
Message:

petites corrections ds zthread.cc , Reza 12/04/2007

Location:
trunk/SophyaLib/SysTools
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/SophyaLib/SysTools/zthread.cc

    r3209 r3217  
    231231  CheckSt(rc,"ZMutex::~ZMutex() Pb pthread_mutex_destroy");
    232232  rc = pthread_cond_destroy(_condv);
    233   CheckSt(rc,"ZMutex::~ZMutex() Pb pthread_cond_destry"); 
     233  CheckSt(rc,"ZMutex::~ZMutex() Pb pthread_cond_destroy"); 
    234234  delete _mutx;
    235235  delete _condv;
  • trunk/SophyaLib/SysTools/zthread.h

    r2955 r3217  
    109109  { pthread_cond_broadcast(_condv); }
    110110
     111protected:
     112  ZMutex(ZMutex const & a)
     113    { throw ForbiddenError("ZMutex::ZMutex(ZMutex const & ) forbidden"); }
     114  ZMutex& operator = (ZMutex const & a)
     115    { throw ForbiddenError("ZMutex:: operator = (ZMutex const & a) forbidden"); }
     116
    111117  // Attributes
    112   pthread_mutex_t * _mutx;
    113   pthread_cond_t * _condv;
     118  pthread_mutex_t *  _mutx;
     119  pthread_cond_t *  _condv;
    114120};
    115121
Note: See TracChangeset for help on using the changeset viewer.