Closed billpratt closed 7 years ago
To prevent potential dead locks, it is recommended to not use MethodImplOptions.Synchronized nor lock(this). Instead, you should lock on a private dummy object.
See here for more info: https://blogs.msdn.microsoft.com/bclteam/2004/01/20/lock-vs-methodimploptions-synchronized-kit-george/
@latkin
LGTM, thanks
To prevent potential dead locks, it is recommended to not use MethodImplOptions.Synchronized nor lock(this). Instead, you should lock on a private dummy object.
See here for more info: https://blogs.msdn.microsoft.com/bclteam/2004/01/20/lock-vs-methodimploptions-synchronized-kit-george/