mirror of
https://github.com/zeek/zeek.git
synced 2025-10-05 16:18:19 +00:00
GH-773: Make EventMgr an IOSource so that events interrupt kevent waits
This commit is contained in:
parent
5171f25e3a
commit
4f23c0360a
6 changed files with 59 additions and 9 deletions
|
@ -53,7 +53,7 @@ public:
|
|||
* sources except for the non-counting ones have gone dry, processing
|
||||
* will shut down.
|
||||
*/
|
||||
void Register(IOSource* src, bool dont_count = false);
|
||||
void Register(IOSource* src, bool dont_count = false, bool manage_lifetime = true);
|
||||
|
||||
/**
|
||||
* Returns the number of registered and still active sources,
|
||||
|
@ -182,8 +182,9 @@ private:
|
|||
};
|
||||
|
||||
struct Source {
|
||||
IOSource* src;
|
||||
bool dont_count;
|
||||
IOSource* src = nullptr;
|
||||
bool dont_count = false;
|
||||
bool manage_lifetime = false;
|
||||
};
|
||||
|
||||
using SourceList = std::vector<Source*>;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue