Fixed issue #2664: Windows explorer slow/very long delays with shell extension enabled
commit6d86149e858e2dcf714ad212a60e79bfe9042da2
authorSven Strickroth <email@cs-ware.de>
Sun, 15 Jan 2017 15:13:21 +0000 (15 16:13 +0100)
committerSven Strickroth <email@cs-ware.de>
Sun, 15 Jan 2017 15:41:03 +0000 (15 16:41 +0100)
tree9ebde0d014a1339458d17aee05472938747563c4
parentaac6a740bf909058d54791eb18d518d156f35af5
Fixed issue #2664: Windows explorer slow/very long delays with shell extension enabled

Guard read-access and additions to m_directoryCache with a separate lock. Removals are (already) protected by writeLock(m_guard), which also makes sure that no CCachedDirectory is currently in use. All calls to GetDirectoryCacheEntry and GetDirectoryCacheEntryNoCreate have at least a readLock(m_guard) which cannot interfere with a writeLock.

Signed-off-by: Sven Strickroth <email@cs-ware.de>
src/Changelog.txt
src/TGitCache/GITStatusCache.cpp
src/TGitCache/GitStatusCache.h