Changeset 11258 for fact


Ignore:
Timestamp:
07/06/11 09:53:36 (13 years ago)
Author:
ogrimm
Message:
pthread_attr_init() was missing in Evidence class constructor
Location:
fact/Evidence
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • fact/Evidence/Evidence.cc

    r10143 r11258  
    110110  pthread_mutexattr_t Attr;
    111111
     112  if ((Ret = pthread_mutexattr_init(&Attr)) != 0) {
     113    Message(FATAL, "pthread_mutex_init() failed in Evidence constructor (%s)", strerror(Ret));
     114  }
    112115  if ((Ret = pthread_mutexattr_settype(&Attr, PTHREAD_MUTEX_ERRORCHECK)) != 0) {
    113     Message(FATAL, "pthread_mutex_settype() failed (%s)", strerror(Ret));
     116    Message(FATAL, "pthread_mutex_settype() failed in Evidence constructor (%s)", strerror(Ret));
    114117  }
    115118  if ((Ret = pthread_mutex_init(&Mutex, &Attr)) != 0) {
    116     Message(FATAL, "pthread_mutex_init() failed (%s)", strerror(Ret));
     119    Message(FATAL, "pthread_mutex_init() failed in Evidence constructor (%s)", strerror(Ret));
    117120  }
    118121
  • fact/Evidence/readme.txt

    r11088 r11258  
    525210/6/2011       Services can be excluded from History buffer (mainly for large event data services)
    535320/6/2011       History buffers periodically saved to file (in case program crash or computer reboot)
     546/7/2011        Missing pthread_mutexattr_init() in Evidence constructor caused spurious errors when
     55                        locking mutex
Note: See TracChangeset for help on using the changeset viewer.