/[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 165 by senkov, Thu Jul 1 04:25:55 2004 UTC revision 281 by schoenebeck, Tue Oct 12 20:46:13 2004 UTC
# Line 21  Line 21 
21   ***************************************************************************/   ***************************************************************************/
22    
23  #include <iostream>  #include <iostream>
24    #include <errno.h>
25    #include <stdlib.h> /* for exit(int) */
26    
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.165  
changed lines
  Added in v.281

  ViewVC Help
Powered by ViewVC