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 |
|
|
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 |
|
|
|