What's the deal with __thread?

Jacob Carlborg doob at me.com
Thu Nov 15 02:39:35 PST 2012


On 2012-11-15 11:28, Don Clugston wrote:

> However, there is one case in the test suite which is unclear to me:
>
> extern(C) __thread int x;
>
> Is there any other way to do this?

extern (C) int x;

"extern(C)" doesn't make it global.

-- 
/Jacob Carlborg


More information about the Digitalmars-d mailing list