Threads and Static Data
Frank Benoit
keinfarbton at googlemail.com
Mon Dec 10 10:09:52 PST 2007
Sean Kelly schrieb:
> 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
See also
http://dsource.org/projects/tango/wiki/ChapterThreading#ThreadLocalStorageTLS
More information about the Digitalmars-d
mailing list