morning. (or whatever)
I’ve got a Thread class which is basically
while ( ! threadShouldExit )
data = readFromBufferThatInvolvesCritSecs();
process->process( data );
the GUI has a “stop” button which calls stopThread(-1) on this thread
“process” communicates with the GUI by sending “listener” type messages which get displayed after using a MessageManagerLock.
sometimes it won’t stop! hourglass spins away forever. and as per-fooking-usual this refuses to happen in anything but a release build.
I put some trace logging about the place and it is just hanging on stopThread(-1) (I don’t really want the thread getting forcibly killed)
anyone see anything I’m doing wrong?
PS I can’t go on holiday until I’ve fixed this!