| ||||||||||
ThreadStaticAttribute ClassIndicates that the value of a static field is unique for each thread.
RemarksA static field marked with ThreadStaticAttribute is not shared between threads. Each executing thread has a separate instance of the static field, and independently sets and gets values for that field. If the static field is accessed on a different thread, it will contain a different value. Use this attribute as it is, and do not derive from it. The following is an example of ThreadStaticAttribute syntax: [ ThreadStatic ]
static int value = 3;
For more information about using attributes, see Extending Metadata Using Attributes. See Also |
| |||||||||
Check out related books at Amazon
© 2000-2008 Rey Nuñez All rights reserved.
If you have any question, comment or suggestion
about this site, please send us a note
You can help support aspxtreme