Add event for network interfaces change.

This commit is contained in:
Peter Johnson
2016-11-18 12:38:54 -08:00
parent 5fecc57e8a
commit bad4ca4666
8 changed files with 195 additions and 3 deletions

View File

@@ -216,3 +216,11 @@ void Notifier::NotifySinkSourceChanged(llvm::StringRef name, CS_Sink sink,
thr->m_notifications.emplace(std::move(event));
thr->m_cond.notify_one();
}
void Notifier::NotifyNetworkInterfacesChanged() {
auto thr = m_owner.GetThread();
if (!thr) return;
thr->m_notifications.emplace(RawEvent::kNetworkInterfacesChanged);
thr->m_cond.notify_one();
}