Changeset 213 in flair-src for trunk/lib/FlairCore/src/Mutex_impl.cpp


Ignore:
Timestamp:
Jan 30, 2018, 5:47:12 PM (4 years ago)
Author:
Sanahuja Guillaume
Message:

thread stack size rework
add Matrix class

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/lib/FlairCore/src/Mutex_impl.cpp

    r133 r213  
    5151Mutex_impl::~Mutex_impl() {
    5252  int status;
    53         char errorMsg[256];
    5453       
    5554#ifdef __XENO__
     
    5857  status = pthread_mutex_destroy(&mutex);
    5958#endif
    60   if (status != 0)
     59  if (status != 0) {
     60    char errorMsg[256];
    6161    self->Err("error destroying mutex (%s)\n", strerror_r(-status, errorMsg, sizeof(errorMsg)));
     62  }
    6263}
    6364
    6465void Mutex_impl::GetMutex(void) {
    6566  int status;
    66         char errorMsg[256];
    6767       
    6868#ifdef __XENO__
     
    7272  status = pthread_mutex_lock(&mutex);
    7373#endif
    74   if (status != 0)
     74  if (status != 0) {
     75    char errorMsg[256];
    7576    self->Err("error (%s)\n", strerror_r(-status, errorMsg, sizeof(errorMsg)));
     77  }
    7678}
    7779
Note: See TracChangeset for help on using the changeset viewer.