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? -

c++ - How to modify context menu of internet explorer using IDocHostUIHandler::ShowContextMenu? -

c# - Asterisk click to call -