--- linuxsampler/trunk/src/engines/InstrumentManagerThread.cpp 2008/01/23 23:52:34 1648 +++ linuxsampler/trunk/src/engines/InstrumentManagerThread.cpp 2008/01/25 15:06:02 1649 @@ -88,6 +88,11 @@ // Entry point for the task thread. int InstrumentManagerThread::Main() { while (true) { + + #if CONFIG_PTHREAD_TESTCANCEL + TestCancel(); + #endif + while (!queue.empty()) { command_t cmd;