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

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

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

revision 880 by schoenebeck, Tue Jun 27 22:57:37 2006 UTC revision 1481 by senoner, Wed Nov 14 23:42:15 2007 UTC
# Line 24  Line 24 
24  #ifndef __MUTEX_H__  #ifndef __MUTEX_H__
25  #define __MUTEX_H__  #define __MUTEX_H__
26    
27    #if defined(WIN32)
28    #include <windows.h>
29    #else
30  #include <pthread.h>  #include <pthread.h>
31    #endif
32    
33  namespace LinuxSampler {  namespace LinuxSampler {
34    
# Line 86  class Mutex { Line 90  class Mutex {
90          void Unlock();          void Unlock();
91                    
92      protected:      protected:
93        #if defined(WIN32)
94        HANDLE hMutex;
95        #else
96          pthread_mutex_t     __posix_mutex;          pthread_mutex_t     __posix_mutex;
97          pthread_mutexattr_t __posix_mutexattr;          pthread_mutexattr_t __posix_mutexattr;
98        #endif
99  };  };
100    
101  } // namespace LinuxSampler  } // namespace LinuxSampler

Legend:
Removed from v.880  
changed lines
  Added in v.1481

  ViewVC Help
Powered by ViewVC