[AD] TLS broken on MinGW? |
[ Thread Index | Date Index | More lists.liballeg.org/allegro-developers Archives ]
The attached example should print three address, with bmp1 and target being the same, unless I messed it up, but I found this out through another program I'm working on... it seems that TLS is broken on MinGW unless you use DLL TLS. The _tls variable acts like a normal static variable, any time tls_get is called it returns the same address no matter what thread. Trent :n)
Attachment:
example.c
Description: Binary data
Mail converted by MHonArc 2.6.19+ | http://listengine.tuxfamily.org/ |