/[svn]/linuxsampler/trunk/src/common/Mutex.cpp
ViewVC logotype

Diff of /linuxsampler/trunk/src/common/Mutex.cpp

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 268 by capela, Thu Oct 7 22:20:20 2004 UTC revision 275 by schoenebeck, Sat Oct 9 15:40:35 2004 UTC
# Line 27  Line 27 
27  #include "Mutex.h"  #include "Mutex.h"
28    
29  Mutex::Mutex() {  Mutex::Mutex() {
30        // the following function call only works on UNIX98 compatible systems
31      if (pthread_mutexattr_settype(&__posix_mutexattr, PTHREAD_MUTEX_ERRORCHECK)) {      if (pthread_mutexattr_settype(&__posix_mutexattr, PTHREAD_MUTEX_ERRORCHECK)) {
32          std::cout << "Mutex Constructor: Fatal error - unable to pthread_mutexattr_settype(PTHREAD_MUTEX_ERRORCHECK)\n" << std::flush;          std::cout << "Mutex Constructor: Fatal error - unable to pthread_mutexattr_settype(PTHREAD_MUTEX_ERRORCHECK)\n" << std::flush;
33          exit(-1);          exit(-1);

Legend:
Removed from v.268  
changed lines
  Added in v.275

  ViewVC Help
Powered by ViewVC