mirror of
https://github.com/zeek/zeek.git
synced 2025-10-10 10:38:20 +00:00
IOSource reorg.
A bunch of infrastructure work to move IOSource, IOSourceRegistry (now iosource::Manager) and PktSrc/PktDumper code into iosource/, and over to a plugin structure. Other IOSources aren't touched yet, they are still in src/*. It compiles and does something with a small trace, but that's all I've tested so far. There are quite certainly a number of problems left, as well as various TODOs and cleanup; and nothing's cast in stone yet. Will continue to work on this.
This commit is contained in:
parent
6c20df11cc
commit
93d9dde969
52 changed files with 2223 additions and 1306 deletions
|
@ -11,7 +11,7 @@ Manager::Manager()
|
|||
did_process = true;
|
||||
next_beat = 0;
|
||||
terminating = false;
|
||||
idle = true;
|
||||
SetIdle(true);
|
||||
}
|
||||
|
||||
Manager::~Manager()
|
||||
|
@ -47,8 +47,8 @@ void Manager::Terminate()
|
|||
all_threads.clear();
|
||||
msg_threads.clear();
|
||||
|
||||
idle = true;
|
||||
closed = true;
|
||||
SetIdle(true);
|
||||
SetClosed(true);
|
||||
terminating = false;
|
||||
}
|
||||
|
||||
|
@ -56,7 +56,7 @@ void Manager::AddThread(BasicThread* thread)
|
|||
{
|
||||
DBG_LOG(DBG_THREADING, "Adding thread %s ...", thread->Name());
|
||||
all_threads.push_back(thread);
|
||||
idle = false;
|
||||
SetIdle(false);
|
||||
}
|
||||
|
||||
void Manager::AddMsgThread(MsgThread* thread)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue