[M3devel] any limitations on __thread?
Olaf Wagner
wagner at elegosoft.com
Thu Apr 30 11:18:47 CEST 2009
Quoting Jay <jay.krell at cornell.edu>:
>
> Anyone have expertise on __thread?
> In particular, on Windows there is a close analog __declspec(thread)
> that generally would seem to work and work well, except that, per
> documentation, prior to Vista, it doesn't work if you are loaded
> with LoadLibrary (dlopen), only if the main executable uses your
> .so, directly or indirectly. To me that's a pretty big limitation so
> I wouldn't use it. I haven't seen any documentation on __thread
> giving this caveat though so it seems ok to use.
>
> I changed m3core to use it if sample code seems to compile, link,
> and execute correctly with it.
This is done at installation time, I assume?
Where is this test located?
>
>
> - Jay
--
Olaf Wagner -- elego Software Solutions GmbH
Gustav-Meyer-Allee 25 / Gebäude 12, 13355 Berlin, Germany
phone: +49 30 23 45 86 96 mobile: +49 177 2345 869 fax: +49 30 23 45 86 95
http://www.elegosoft.com | Geschäftsführer: Olaf Wagner | Sitz: Berlin
Handelregister: Amtsgericht Charlottenburg HRB 77719 | USt-IdNr: DE163214194
More information about the M3devel
mailing list