/[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 290 by senkov, Wed Oct 20 03:02:35 2004 UTC revision 361 by schoenebeck, Wed Feb 9 01:22:18 2005 UTC
# Line 42  Line 42 
42    
43  Mutex::Mutex() {  Mutex::Mutex() {
44      // the following function call only works on UNIX98 compatible systems      // the following function call only works on UNIX98 compatible systems
45        #if (_XOPEN_SOURCE > 500)
46      if (pthread_mutexattr_settype(&__posix_mutexattr, PTHREAD_MUTEX_ERRORCHECK)) {      if (pthread_mutexattr_settype(&__posix_mutexattr, PTHREAD_MUTEX_ERRORCHECK)) {
47          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;
48          exit(-1);          exit(-1);
49      }      }
50        #endif
51      pthread_mutex_init(&__posix_mutex, &__posix_mutexattr);      pthread_mutex_init(&__posix_mutex, &__posix_mutexattr);
52  }  }
53    

Legend:
Removed from v.290  
changed lines
  Added in v.361

  ViewVC Help
Powered by ViewVC