/[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 56 by schoenebeck, Tue Apr 27 09:21:58 2004 UTC revision 165 by senkov, Thu Jul 1 04:25:55 2004 UTC
# Line 40  void Mutex::Lock() { Line 40  void Mutex::Lock() {
40      pthread_mutex_lock(&__posix_mutex);      pthread_mutex_lock(&__posix_mutex);
41  }  }
42    
43    bool Mutex::Trylock() {
44        if (pthread_mutex_trylock(&__posix_mutex) == EBUSY)
45                return false;
46        return true;
47    }
48    
49  void Mutex::Unlock() {  void Mutex::Unlock() {
50      pthread_mutex_unlock(&__posix_mutex);      pthread_mutex_unlock(&__posix_mutex);
51  }  }

Legend:
Removed from v.56  
changed lines
  Added in v.165

  ViewVC Help
Powered by ViewVC