/[svn]/linuxsampler/trunk/src/common/WorkerThread.cpp
ViewVC logotype

Diff of /linuxsampler/trunk/src/common/WorkerThread.cpp

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

revision 1200 by iliev, Thu May 24 14:04:18 2007 UTC revision 1895 by persson, Sun May 3 12:15:40 2009 UTC
# Line 38  namespace LinuxSampler { Line 38  namespace LinuxSampler {
38      // Entry point for the worker thread.      // Entry point for the worker thread.
39      int WorkerThread::Main() {      int WorkerThread::Main() {
40          while (true) {          while (true) {
41    
42            #if CONFIG_PTHREAD_TESTCANCEL
43                            TestCancel();
44            #endif
45              while (!queue.empty()) {              while (!queue.empty()) {
46                  Runnable* pJob;                  Runnable* pJob;
47    
# Line 70  namespace LinuxSampler { Line 74  namespace LinuxSampler {
74              // unlock condition object so it can be turned again by other thread              // unlock condition object so it can be turned again by other thread
75              conditionJobsLeft.Unlock();              conditionJobsLeft.Unlock();
76          }          }
77            return 0;
78      }      }
79    
80  } // namespace LinuxSampler  } // namespace LinuxSampler
       

Legend:
Removed from v.1200  
changed lines
  Added in v.1895

  ViewVC Help
Powered by ViewVC