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;
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
Post a Comment