Threads and Static Data

Sean Kelly sean at f4.ca
Mon Dec 10 08:23:13 PST 2007


Craig Black wrote:
> 
> This solution will do the job, but it is a little clumsy.  This seems 
> like this is a common problem that warrants better syntax.  Ideally, I 
> would like to be able access a "threaded" variable just like any other 
> so that the above example is simply "x++".

See tango.core.Thread: Thread.get/setLocal or ThreadLocal(T).


Sean



More information about the Digitalmars-d mailing list