Skip to content

Commit

Permalink
fix thread uses in platform specific code
Browse files Browse the repository at this point in the history
  • Loading branch information
maddanio committed Nov 23, 2023
1 parent 4b78c92 commit 24235a2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/efsw/FileWatcherInotify.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,7 @@ void FileWatcherInotify::removeWatch( WatchID watchid ) {

void FileWatcherInotify::watch() {
if ( NULL == mThread ) {
mThread = new Thread( &FileWatcherInotify::run, this );
mThread = new Thread([this]{run();});
mThread->launch();
}
}
Expand Down
2 changes: 1 addition & 1 deletion src/efsw/FileWatcherWin32.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ void FileWatcherWin32::removeWatch( WatcherStructWin32* watch ) {

void FileWatcherWin32::watch() {
if ( NULL == mThread ) {
mThread = new Thread( &FileWatcherWin32::run, this );
mThread = new Thread([this]{run();});
mThread->launch();
}
}
Expand Down

0 comments on commit 24235a2

Please sign in to comment.