FigBug / Gin

A few extras for juce
BSD 3-Clause "New" or "Revised" License
262 stars 40 forks source link

Fix Linux bugs for gin_filesystemwatcher #39

Closed timothyschoen closed 1 year ago

timothyschoen commented 1 year ago

This fixes 2 bugs:

  1. The ScopedLock in handleAsyncUpdate was never really used, since it didn't get locked anywhere else. This lead to data-races and potential crashes
  2. We now check if the thread was requested to quit, similar to what you did on Windows. Not doing this can lead to shutdown bugs.