Changeset 3209 in Sophya


Ignore:
Timestamp:
Apr 10, 2007, 5:58:01 PM (18 years ago)
Author:
ansari
Message:

appel mutex_destroy() cond_destroy() ds destructeur ZMutex , Reza 10/04/2007

File:
1 edited

Legend:

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

    r2955 r3209  
    197197  \class SOPHYA::ZMutex
    198198  \ingroup SysTools
    199   \brief Wrapper for Mutex objects.
     199  \brief Wrapper for a pair of (Mutex,Cond.Var) objects.
    200200
    201201  This class implements an interface to the Mutual Exclusion objects
     
    227227ZMutex::~ZMutex()
    228228{
     229  int rc;
     230  rc = pthread_mutex_destroy(_mutx);
     231  CheckSt(rc,"ZMutex::~ZMutex() Pb pthread_mutex_destroy");
     232  rc = pthread_cond_destroy(_condv);
     233  CheckSt(rc,"ZMutex::~ZMutex() Pb pthread_cond_destry"); 
    229234  delete _mutx;
    230235  delete _condv;
Note: See TracChangeset for help on using the changeset viewer.