void FileWatcherUnsubscribe(WatchedFile* wf) { if (!wf) return; CrashIf(!g_threadHandle); ScopedCritSec cs(&g_threadCritSec); RemoveWatchedFile(wf); }
void FileWatcherUnsubscribe(FileWatcherToken token) { if (INVALID_TOKEN == token) return; WatchedFile *wf = FindByToken(token); if (!wf) return; RemoveWatchedFile(wf); }