c# - Thread local storage -


what best way store variable local each thread?

you can indicate static variables should stored per-thread using [threadstatic] attribute:

[threadstatic] private static int foo; 

Comments

Popular posts from this blog

android - Spacing between the stars of a rating bar? -

html - Instapaper-like algorithm -

c# - How to execute a particular part of code asynchronously in a class -