Thread Local Storage (__thread)

735 views
Skip to first unread message

Oceanblue

unread,
Jul 11, 2011, 11:05:29 AM7/11/11
to android-ndk
According to the following discussion, TLS is not supported by NDK.

http://groups.google.com/group/android-ndk/browse_thread/thread/4f60d0201464b7f4/0b6b883cb0aa4f5b?lnk=gst&q=__thread#0b6b883cb0aa4f5b

However, while porting some existing code, when I copile the following
line, it compiles without error:
__thread unsigned int i;

Shouldn't the above line give a compiler error in that case?

David Turner

unread,
Jul 11, 2011, 1:49:10 PM7/11/11
to andro...@googlegroups.com
No, because this is an issue with the dynamic linker and runtime, not the compiler.
 
--
You received this message because you are subscribed to the Google Groups "android-ndk" group.
To post to this group, send email to andro...@googlegroups.com.
To unsubscribe from this group, send email to android-ndk...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/android-ndk?hl=en.


Reply all
Reply to author
Forward
0 new messages