mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 22:58:20 +00:00
Fixes for iosource::Manager for deadlocks during shutdown
This commit is contained in:
parent
6acb626ece
commit
d06387d4d3
2 changed files with 6 additions and 6 deletions
|
@ -43,10 +43,10 @@ void Manager::WakeupHandler::Process()
|
|||
flare.Extinguish();
|
||||
}
|
||||
|
||||
void Manager::WakeupHandler::Ping(const std::string& where)
|
||||
void Manager::WakeupHandler::Ping(std::string_view where)
|
||||
{
|
||||
DBG_LOG(DBG_MAINLOOP, "Pinging WakeupHandler from %s", where.c_str());
|
||||
flare.Fire();
|
||||
DBG_LOG(DBG_MAINLOOP, "Pinging WakeupHandler from %s", where.data());
|
||||
flare.Fire(true);
|
||||
}
|
||||
|
||||
Manager::Manager()
|
||||
|
@ -98,7 +98,7 @@ void Manager::RemoveAll()
|
|||
dont_counts = sources.size();
|
||||
}
|
||||
|
||||
void Manager::Wakeup(const std::string& where)
|
||||
void Manager::Wakeup(std::string_view where)
|
||||
{
|
||||
if ( wakeup )
|
||||
wakeup->Ping(where);
|
||||
|
|
|
@ -144,7 +144,7 @@ public:
|
|||
* is called during RegisterFd and UnregisterFd since those methods cause
|
||||
* changes to the active set of file descriptors.
|
||||
*/
|
||||
void Wakeup(const std::string& where);
|
||||
void Wakeup(std::string_view where);
|
||||
|
||||
private:
|
||||
/**
|
||||
|
@ -186,7 +186,7 @@ private:
|
|||
* @param where a string denoting where this ping was called from. Used
|
||||
* for debugging output.
|
||||
*/
|
||||
void Ping(const std::string& where);
|
||||
void Ping(std::string_view where);
|
||||
|
||||
// IOSource API methods
|
||||
void Process() override;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue