It's the call to:

System.Threading.Thread.GetData(s_threadLocalSlot) 

On line 148 of ThreadContextProperties.cs that makes the
PropertiesDictionary actually held on a per managed thread basis.

Nicko

> -----Original Message-----
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
> Sent: 27 May 2005 15:30
> To: [email protected]
> Subject: ThreadContext question
> 
> The comments for ThreadContext indicate that it "is managed 
> on a per thread basis" however looking at the source code I 
> do not see how this works, since Thread.Context.s_properties 
> and ThreadContextProperties.s_threadLocalSlot are both static 
> data members.
> 
> What is the mechanism that causes the properties to be stored 
> per thread?
> 
> 
> 
> 
> 
> 

Reply via email to