spoke to soon (forgot to comment in line again).

Now it should work. However - this commit changes a basic assumption
of the threading queue. This basic assumption is, that nothing can
be read out of the out-queue of a dead thread. I think that reading
out of the queue of a dead thread makes perfect sense (when the thread
shuts down, pushes the rest of its work on the queue and says bye,
and wants the main thread to pick it up afterwards) - however, I
guess one can be of a differing opinion here.

In any case, it makes stuff a bit easier to understand - in my opinion.
It took me a while to find out why the messages disappear in thin
air and never arrive in the main thread ;)
This commit is contained in:
Bernhard Amann 2013-05-15 00:49:57 -07:00
parent 39f1b9e01f
commit b947394990
5 changed files with 9 additions and 17 deletions

View file

@ -333,7 +333,7 @@ void MsgThread::SendOut(BasicOutputMessage* msg, bool force)
{
delete msg;
return;
}
}
queue_out.Put(msg);