Upgrade file locking
wxSingleInstanceChecker is meant for running programs, not file locking. This implements an RAII class for file locking that stores the lock files next to the file being locked, allowing it to be easily found and removed. Also includes the ability to override the lock, with information about the original owner Fixes #14734 (cherry picked from commit 122be418)
Showing
- common/CMakeLists.txt 0 additions, 1 deletioncommon/CMakeLists.txt
- common/eda_draw_frame.cpp 8 additions, 3 deletionscommon/eda_draw_frame.cpp
- common/lockfile.cpp 0 additions, 96 deletionscommon/lockfile.cpp
- common/pgm_base.cpp 1 addition, 2 deletionscommon/pgm_base.cpp
- common/settings/settings_manager.cpp 2 additions, 2 deletionscommon/settings/settings_manager.cpp
- eeschema/files-io.cpp 7 additions, 1 deletioneeschema/files-io.cpp
- include/eda_draw_frame.h 2 additions, 1 deletioninclude/eda_draw_frame.h
- include/lockfile.h 248 additions, 13 deletionsinclude/lockfile.h
- include/settings/settings_manager.h 2 additions, 1 deletioninclude/settings/settings_manager.h
- pcbnew/files.cpp 7 additions, 7 deletionspcbnew/files.cpp
Loading
Please register or sign in to comment