Skip to content

Commit

Permalink
Fix for #174.
Browse files Browse the repository at this point in the history
  • Loading branch information
SpartanJ committed Aug 4, 2024
1 parent 4335552 commit 621939d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion src/efsw/FileWatcherWin32.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,8 @@ void FileWatcherWin32::run() {
break;
} else {
Lock lock( mWatchesLock );
WatchCallback( numOfBytes, ov );
if (mWatches.find( (WatcherStructWin32*)ov ) != mWatches.end())
WatchCallback( numOfBytes, ov );
}
}
} else {
Expand Down
4 changes: 2 additions & 2 deletions src/efsw/FileWatcherWin32.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

#include <efsw/WatcherWin32.hpp>
#include <map>
#include <set>
#include <unordered_set>
#include <vector>

namespace efsw {
Expand All @@ -17,7 +17,7 @@ namespace efsw {
class FileWatcherWin32 : public FileWatcherImpl {
public:
/// type for a map from WatchID to WatcherWin32 pointer
typedef std::set<WatcherStructWin32*> Watches;
typedef std::unordered_set<WatcherStructWin32*> Watches;

FileWatcherWin32( FileWatcher* parent );

Expand Down

0 comments on commit 621939d

Please sign in to comment.