Thread safety: replace ++m_modHash by IncrementModifyHash()

(cherry picked from commit d464d7995b)
This commit is contained in:
Roberto Fernandez Bautista 2024-02-20 21:23:47 +01:00
parent 9004f92689
commit 3f47e03317
1 changed files with 2 additions and 2 deletions

View File

@ -72,7 +72,7 @@ void SCH_IO_KICAD_SEXPR_LIB_CACHE::Load()
SCH_IO_KICAD_SEXPR_PARSER parser( &reader );
parser.ParseLib( m_symbols );
++m_modHash;
IncrementModifyHash();
// Remember the file modification time of library file when the cache snapshot was made,
// so that in a networked environment we will reload the cache as needed.
@ -562,6 +562,6 @@ void SCH_IO_KICAD_SEXPR_LIB_CACHE::DeleteSymbol( const wxString& aSymbolName )
delete symbol;
}
++m_modHash;
IncrementModifyHash();
m_isModified = true;
}