Symmetric Multiprocessing (SMP) development
 help / color / mirror / Atom feed
* per-thread global variables
@ 2002-07-12 16:15 J.A. Magallon
  2002-07-12 16:43 ` Alan Cox
  2002-07-12 19:17 ` Robert M. Hyatt
  0 siblings, 2 replies; 12+ messages in thread
From: J.A. Magallon @ 2002-07-12 16:15 UTC (permalink / raw)
  To: Lista Linux-SMP

Hi all.

I am looking for a method to have a global variable that has a unique
personality fot each thread. I don't want to use pthreads, but I would
like to emulate [get,set]specific. I just want to use clone() directly.

I have read something about a __thread variable modifier, or something
about an __attribute(( )) in gcc. Other solutions imply a search based
on pid, but I would like to find some more direct method.
Something like using the PRDA in IRIX.

Anybody has any pointer/info on this ?

TIA

-- 
J.A. Magallon             \   Software is like sex: It's better when it's free
mailto:jamagallon@able.es  \                    -- Linus Torvalds, FSF T-shirt
Linux werewolf 2.4.19-rc1-jam3, Mandrake Linux 8.3 (Cooker) for i586
gcc (GCC) 3.1.1 (Mandrake Linux 8.3 3.1.1-0.7mdk)

^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2002-07-13 14:07 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-07-12 16:15 per-thread global variables J.A. Magallon
2002-07-12 16:43 ` Alan Cox
2002-07-12 16:34   ` J.A. Magallon
2002-07-12 17:41     ` Alan Cox
2002-07-12 19:17 ` Robert M. Hyatt
2002-07-13  0:12   ` J.A. Magallon
2002-07-13  1:50     ` Alan Cox
2002-07-13  1:11       ` J.A. Magallon
2002-07-13  2:05         ` J.A. Magallon
2002-07-13  3:20     ` Robert M. Hyatt
2002-07-13  9:43       ` J.A. Magallon
2002-07-13 14:07         ` Robert M. Hyatt

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox