VisualStudioFeeds

All Visual Studio blogs in one place

AddThis Social Bookmark Button
Originally posted at 12/15/2010Last time, we forgot that the slots dictionary is a thread static variable, and that the finalizer is going to run on another thread… Let us fix this, too: public class CloseableThreadLocal { [ThreadStatic] public static Dictionary slots; private
readonly object holder = new object(); private Dictionary capturedSlots; private Dictionary Slots { get { if (slots == null) ...(Read whole news on source site)

Search

Subscribe

Enter your email address:

Delivered by FeedBurner

Increase your website traffic with Attracta.com

Contact

Email:
Subject:
Message:
Anti-spam: How many eyes has a typical person?

Follow us on FB

Home : Blog List : VibrantCode : Wrong Answer #3: Your own Thread Local