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

SAP Web Service from .NET via WCF -

Optimized Line drawing in QT -

datetime - str to time in python -