/[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 830 by persson, Sun Jan 15 18:23:11 2006 UTC revision 880 by schoenebeck, Tue Jun 27 22:57:37 2006 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, 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 46  Line 47 
47    
48  #include "Mutex.h"  #include "Mutex.h"
49    
50    namespace LinuxSampler {
51    
52  Mutex::Mutex() {  Mutex::Mutex() {
53      // the following function call only works on UNIX98 compatible systems      // the following function call only works on UNIX98 compatible systems
54      #if (_XOPEN_SOURCE > 500)      #if (_XOPEN_SOURCE > 500)
# Line 74  bool Mutex::Trylock() { Line 77  bool Mutex::Trylock() {
77  void Mutex::Unlock() {  void Mutex::Unlock() {
78      pthread_mutex_unlock(&__posix_mutex);      pthread_mutex_unlock(&__posix_mutex);
79  }  }
80    
81    } // namespace LinuxSampler

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

  ViewVC Help
Powered by ViewVC