This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Re: Does gcc on cygwin support thread local storage with __declspec(thread)?
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
According to Wang Yiping on 8/25/2006 5:52 PM:
> Dear Readers:
>
> Recently I am trying to compile mozilla on cygwin, the gcc gives me
> such warnings:
>
> ../../../dist/include/nspr/md/_winnt.h:507: warning: `thread' attribute
> directiv
> e ignored
>
> Does this mean it does not support TLS? then how to use Thread-local
> storage on cygwin?
Cygwin supports thread-local storage using pthread_key_create and friends.
If you want the notation __declspec(thread) to work as well, you will
have to look into patching gcc accordingly.
- --
Life is short - so eat dessert first!
Eric Blake ebb9@byu.net
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2.1 (Cygwin)
Comment: Public key at home.comcast.net/~ericblake/eblake.gpg
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQFE8txW84KuGfSFAYARAszyAJ4+2jlIsIndDUS+jxfLi2GovWqbHwCgsmVx
GOnagZlJY9umhmINFfSNPPg=
=2oM6
-----END PGP SIGNATURE-----
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/