Skip to content

Commit

Permalink
whoops
Browse files Browse the repository at this point in the history
  • Loading branch information
bpasero committed Sep 11, 2024
1 parent 575a1e1 commit 66db0d3
Showing 1 changed file with 0 additions and 17 deletions.
17 changes: 0 additions & 17 deletions src/Watcher.cc
Original file line number Diff line number Diff line change
Expand Up @@ -75,23 +75,6 @@ void Watcher::notify() {
}
}

void Watcher::notify() {
{
std::unique_lock<std::mutex> 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<Event> events;
Expand Down

0 comments on commit 66db0d3

Please sign in to comment.