Thread Local Storage Template

Sean Kelly sean at f4.ca
Tue Sep 12 08:14:13 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?

Provide thread-local storage for the main thread.


Sean



More information about the Digitalmars-d-announce mailing list