codecadwallader / codemaid

CodeMaid is an open source Visual Studio extension to cleanup and simplify our C#, C++, F#, VB, PHP, PowerShell, JSON, XAML, XML, ASP, HTML, CSS, LESS, SCSS, JavaScript and TypeScript coding.
http://www.codemaid.net
GNU Lesser General Public License v3.0
1.89k stars 356 forks source link

Use an alternate LazyThreadSafetyMode per recommendation. #951

Closed codecadwallader closed 1 year ago

codecadwallader commented 1 year ago

Proposed in #948

I'm not positive this will address the issue as the provided call stacks only show one thread coming into this function. It seems this would help if there were two separate threads both calling into the same initializer. I'm putting it up for PR though if anyone has ideas on how to reproduce the original issue or more context.