TortoiseShell: Use InterlockedIncrement()/InterlockedDecrement() for reference counter
commitc2e2a76f87cf3d5366bc94f036984ac43c0b0f27
authorSven Strickroth <email@cs-ware.de>
Wed, 23 Dec 2015 00:53:42 +0000 (23 01:53 +0100)
committerSven Strickroth <email@cs-ware.de>
Thu, 24 Dec 2015 13:33:19 +0000 (24 14:33 +0100)
tree5724217cc22c8ec3853c4874506387519d315159
parent3344c5b7127a6fbca4e1e515c1b027f5fb352b50
TortoiseShell: Use InterlockedIncrement()/InterlockedDecrement() for reference counter

Use InterlockedIncrement()/InterlockedDecrement() for reference counter of shell extension objects and their factories: Windows Shell calls shell extensions from different threads concurrently. Most of shell extension methods are already ready for free-threaded access due usage of g_csGlobalCOMGuard lock.

Based on TortoiseSVN rev. 27082.

Signed-off-by: Sven Strickroth <email@cs-ware.de>
src/TortoiseShell/ShellExt.cpp
src/TortoiseShell/ShellExtClassFactory.cpp