Re: [Mingw-w64-public] TLS Issue

2012-03-17 Thread Ozkan Sezer
On Sat, Mar 17, 2012 at 8:30 PM, Chris Sutcliffe wrote: > Hi Kai, > > On 16 March 2012 16:33, Kai Tietz wrote: >> So I tested it on my side with following code: > > > > I'm not sure if the code you tested with replicates the error as > described in the bug report, as the sample code you provided

Re: [Mingw-w64-public] TLS Issue

2012-03-17 Thread Chris Sutcliffe
Hi Kai, On 16 March 2012 16:33, Kai Tietz wrote: > So I tested it on my side with following code: I'm not sure if the code you tested with replicates the error as described in the bug report, as the sample code you provided works find under mingw.org mingwrt. As I understand it from the OP, th

Re: [Mingw-w64-public] TLS Issue

2012-03-16 Thread Kai Tietz
So I tested it on my side with following code: t.dll: __thread int g_var = 1; __declspec(dllexport) int get_g_var (void) { return g_var; } __declspec(dllexport) void set_g_var (int v) { g_var = v; } and t2.exe: #include #include typedef int (*f1)(void); typedef void (*f2)(int); int main

Re: [Mingw-w64-public] TLS Issue

2012-03-16 Thread Kai Tietz
2012/3/16 Chris Sutcliffe : > Hi Kai, > > This issue has recently been raised in the MinGW tracker: > > http://sourceforge.net/tracker/?func=detail&atid=102435&aid=3322937&group_id=2435 > > Basically there seems to be an issue with TLS and LoadLibrary.  Given > that mingw-w64 also uses TLS, how did

[Mingw-w64-public] TLS Issue

2012-03-16 Thread Chris Sutcliffe
Hi Kai, This issue has recently been raised in the MinGW tracker: http://sourceforge.net/tracker/?func=detail&atid=102435&aid=3322937&group_id=2435 Basically there seems to be an issue with TLS and LoadLibrary. Given that mingw-w64 also uses TLS, how did you work around it? Thank you, Chris