/[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 550 by schoenebeck, Tue May 17 17:59:45 2005 UTC revision 1649 by nagata, Fri Jan 25 15:06:02 2008 UTC
# Line 3  Line 3 
3   *   LinuxSampler - modular, streaming capable sampler                     *   *   LinuxSampler - modular, streaming capable sampler                     *
4   *                                                                         *   *                                                                         *
5   *   Copyright (C) 2003, 2004 by Benno Senoner and Christian Schoenebeck   *   *   Copyright (C) 2003, 2004 by Benno Senoner and Christian Schoenebeck   *
6   *   Copyright (C) 2005 Christian Schoenebeck                              *   *   Copyright (C) 2005, 2006 Christian Schoenebeck                        *
7   *                                                                         *   *                                                                         *
8   *   This program is free software; you can redistribute it and/or modify  *   *   This program is free software; you can redistribute it and/or modify  *
9   *   it under the terms of the GNU General Public License as published by  *   *   it under the terms of the GNU General Public License as published by  *
# 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    #include "global_private.h"
34    
35    namespace LinuxSampler {
36    
37  /** @brief Mutual exclusive objects  /** @brief Mutual exclusive objects
38   *   *
# Line 84  class Mutex { Line 92  class Mutex {
92          void Unlock();          void Unlock();
93                    
94      protected:      protected:
95        #if defined(WIN32)
96        HANDLE hMutex;
97        #else
98          pthread_mutex_t     __posix_mutex;          pthread_mutex_t     __posix_mutex;
99          pthread_mutexattr_t __posix_mutexattr;          pthread_mutexattr_t __posix_mutexattr;
100        #endif
101  };  };
102    
103    } // namespace LinuxSampler
104    
105  #endif // __MUTEX_H__  #endif // __MUTEX_H__

Legend:
Removed from v.550  
changed lines
  Added in v.1649

  ViewVC Help
Powered by ViewVC