/[svn]/linuxsampler/trunk/src/engines/InstrumentManagerThread.cpp
ViewVC logotype

Diff of /linuxsampler/trunk/src/engines/InstrumentManagerThread.cpp

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

revision 2186 by persson, Sun Jun 19 09:09:38 2011 UTC revision 2187 by persson, Sun Jun 19 18:54:11 2011 UTC
# Line 168  namespace LinuxSampler { Line 168  namespace LinuxSampler {
168          pThread->mutex.Unlock();          pThread->mutex.Unlock();
169      }      }
170    
171    #ifdef __APPLE__
172      int InstrumentManagerThread::StopThread() {      int InstrumentManagerThread::StopThread() {
173          // This is a fix for Mac OS X, where SignalStopThread doesn't          // This is a fix for Mac OS X, where SignalStopThread doesn't
174          // wake up a thread waiting for a condition variable.          // wake up a thread waiting for a condition variable.
# Line 175  namespace LinuxSampler { Line 176  namespace LinuxSampler {
176          conditionJobsLeft.Set(true); // wake thread          conditionJobsLeft.Set(true); // wake thread
177          return Thread::StopThread(); // then wait for it to cancel          return Thread::StopThread(); // then wait for it to cancel
178      }      }
179    #endif
180    
181  } // namespace LinuxSampler  } // namespace LinuxSampler

Legend:
Removed from v.2186  
changed lines
  Added in v.2187

  ViewVC Help
Powered by ViewVC