delorie.com/archives/browse.cgi | search |
From: | fjh AT cs DOT mu DOT OZ DOT AU (Fergus Henderson) |
Subject: | thread-local storage (was: BAD NEWS - Apache ...) |
16 May 1997 19:24:30 -0700 : | |
Approved: | cygnus DOT gnu-win32 AT cygnus DOT com |
Distribution: | cygnus |
Message-ID: | <199705161526.BAA02259.cygnus.gnu-win32@mundook.cs.mu.OZ.AU> |
Original-To: | colin AT bird DOT fu DOT is DOT saga-u DOT ac DOT jp (Colin Peters) |
Original-Cc: | gnu-win32 AT cygnus DOT com (Cygnus GNU-win32 mailing list) |
In-Reply-To: | <01BC6208.5EF05380@gbird0> from "Colin Peters" at May 16, 97 02:49:33 pm |
X-Mailer: | ELM [version 2.4 PL24] |
Original-Sender: | owner-gnu-win32 AT cygnus DOT com |
Colin Peters, you wrote: > > If GCC supported the __declspec(thread) syntax (or some equivalent) > then you could simply mark all your thread local "static" or "global" > variables with that and everything would be simpler, but I don't > think that is likely to work now or anytime soon. What would be necessary to get this to work? Is #define THREADLOCAL __attribute__((section(".tls"))) int foo THREADLOCAL = 42; enough, or does the compiler need to generate special code for accessing thread-local storage? -- Fergus Henderson <fjh AT cs DOT mu DOT oz DOT au> | "I have always known that the pursuit WWW: <http://www.cs.mu.oz.au/~fjh> | of excellence is a lethal habit" PGP: finger fjh AT 128 DOT 250 DOT 37 DOT 3 | -- the last words of T. S. Garp. - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request AT cygnus DOT com" with one line of text: "help".
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |