Thread Local Storage Template
xs0
xs0 at xs0.com
Tue Sep 12 03:35:25 PDT 2006
Stewart Gordon wrote:
> Mikola Lysenko wrote:
>> The current version of D does not have thread local storage. This is
>> a very useful feature, and the lack of support is frustrating. The
>> problem is compounded by the fact that there are no truly cross
>> platform thread local storage facilities. To work around this
>> problem, I have created a simple templatized wrapper. It currently
>> supports DMD and GDC on the following platforms:
>>
>> Windows
>> Linux
>> Mac OS X
>>
>> You can download it at: http://www.assertfalse.com/projects.shtml
>
> What exactly can this do that cannot be done by simply deriving a class
> from Thread and adding member variables?
afaik, nothing, but that's not always an option; almost any kind of
library can hardly require that you use a specific Thread type..
xs0
More information about the Digitalmars-d-announce
mailing list