Closed jackokring closed 1 year ago
Yes, the destructor of efsw::FileWatcher will close all the watches folders for you. It shouldn't be a problem. A minor detail:
watch()
should be called only once. In your case, you could call watch
in the constructor of WatcherDo
, and add the watches whenever you need them. But calling watch
many times shouldn't do any harm, it will only "execute" in the first call.
You can't trace-back the segfault?
No, it's fixed. I only need the one plugin watch and a sort on filename.
Just wondering what order reclamation works for a library include as the example source does not explain if a
WatchID
cancels on its destructor etc. Not known if this is an issue. The project plugin I'm working on seg faults on library unloading (a few Plugin after my plugin), but this could be any number of other plugin's fault.