From 66db0d33ee287699e5e0770399e9bb56ff6e0877 Mon Sep 17 00:00:00 2001 From: Benjamin Pasero Date: Wed, 11 Sep 2024 08:57:51 +0200 Subject: [PATCH] whoops --- src/Watcher.cc | 17 ----------------- 1 file changed, 17 deletions(-) diff --git a/src/Watcher.cc b/src/Watcher.cc index d3eeba8..4c7e24e 100644 --- a/src/Watcher.cc +++ b/src/Watcher.cc @@ -75,23 +75,6 @@ void Watcher::notify() { } } -void Watcher::notify() { - { - std::unique_lock lk(mMutex); - mCond.notify_all(); - - if (mCallbacks.size() == 0 || mEvents.size() == 0) { - return; - } - } - - // We must have released our lock before calling into the debouncer - // to avoid a deadlock: the debouncer thread itself will require - // our lock from its thread when calling into `triggerCallbacks` - // while holding its own debouncer lock. - mDebounce->trigger(); -} - struct CallbackData { std::string error; std::vector events;