mirror of
https://github.com/zeek/zeek.git
synced 2025-10-11 02:58:20 +00:00
Preventing busy looping when no threads have been spawned.
This commit is contained in:
parent
6429d1248a
commit
554a29b3ed
1 changed files with 2 additions and 1 deletions
|
@ -10,7 +10,7 @@ Manager::Manager()
|
|||
did_process = true;
|
||||
next_beat = 0;
|
||||
terminating = false;
|
||||
idle = false;
|
||||
idle = true;
|
||||
}
|
||||
|
||||
Manager::~Manager()
|
||||
|
@ -58,6 +58,7 @@ void Manager::AddThread(BasicThread* thread)
|
|||
{
|
||||
DBG_LOG(DBG_THREADING, "Adding thread %s ...", thread->Name().c_str());
|
||||
all_threads.push_back(thread);
|
||||
idle = false;
|
||||
}
|
||||
|
||||
void Manager::AddMsgThread(MsgThread* thread)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue