mirror of
https://github.com/zeek/zeek.git
synced 2025-10-04 15:48:19 +00:00
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:
parent
39f1b9e01f
commit
b947394990
5 changed files with 9 additions and 17 deletions
|
@ -333,7 +333,7 @@ void MsgThread::SendOut(BasicOutputMessage* msg, bool force)
|
|||
{
|
||||
delete msg;
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
queue_out.Put(msg);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue