--- linuxsampler/trunk/src/common/WorkerThread.cpp 2007/06/10 06:54:54 1222 +++ linuxsampler/trunk/src/common/WorkerThread.cpp 2008/01/25 15:06:02 1649 @@ -38,6 +38,10 @@ // Entry point for the worker thread. int WorkerThread::Main() { while (true) { + + #if CONFIG_PTHREAD_TESTCANCEL + TestCancel(); + #endif while (!queue.empty()) { Runnable* pJob;