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


Ignore:
Timestamp:
01/30/18 17:47:12 (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/Semaphore_impl.cpp

    r203 r213  
    2828  this->self = self;
    2929  int status;
    30         char errorMsg[256];
    3130       
    3231#ifdef __XENO__
     
    3635#endif
    3736  if (status != 0) {
     37    char errorMsg[256];
    3838    self->Err("error creating semaphore (%s)\n", strerror_r(-status, errorMsg, sizeof(errorMsg)));
    3939  }
     
    4242Semaphore_impl::~Semaphore_impl() {
    4343  int status;
    44         char errorMsg[256];
    4544       
    4645#ifdef __XENO__
     
    4948  status = sem_destroy(&semaphore);
    5049#endif
    51   if (status != 0)
     50  if (status != 0) {
     51    char errorMsg[256];
    5252    self->Err("error destroying semaphore (%s)\n", strerror_r(-status, errorMsg, sizeof(errorMsg)));
     53  }
    5354}
    5455
Note: See TracChangeset for help on using the changeset viewer.