Skip site navigation (1) Skip section navigation (2)

Re: [HACKERS] Threads vs Processes

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: "Merlin Moncure" <merlin(dot)moncure(at)rcsonline(dot)com>
Cc: pgsql-hackers(at)postgresql(dot)org, pgsql-hackers-win32(at)postgresql(dot)org,"Bruce Momjian" <pgman(at)candle(dot)pha(dot)pa(dot)us>,"Shridhar Daithankar" <shridhar_daithankar(at)persistent(dot)co(dot)in>,"Claudio Natoli" <claudio(dot)natoli(at)memetrics(dot)com>
Subject: Re: [HACKERS] Threads vs Processes
Date: 2003-09-25 23:15:00
Message-ID: 4612.1064531700@sss.pgh.pa.us (view raw or flat)
Thread:
Lists: pgsql-hackerspgsql-hackers-win32
"Merlin Moncure" <merlin(dot)moncure(at)rcsonline(dot)com> writes:
> All TLS variables *must* be static (or implicitly static
> through extern, i.e. no 'auto' variables)

I assume you mean static as in not-auto, rather than static as in
not-global.  Otherwise we have a problem here.

> and their addresses can not be
> assumed to be constant.

Surely the addresses can be assumed constant within a thread.  Otherwise
we have a problem here too.

> Taking addresses of TLS variables should be considered illegal,

Sorry, no can accept that restriction.

			regards, tom lane

In response to

Responses

pgsql-hackers by date

Next:From: Myron ScottDate: 2003-09-25 23:19:21
Subject: Re: Threads vs Processes
Previous:From: Robert TreatDate: 2003-09-25 20:14:36
Subject: Re: PL contribution guidelines?

pgsql-hackers-win32 by date

Next:From: Myron ScottDate: 2003-09-25 23:19:21
Subject: Re: Threads vs Processes
Previous:From: Keith BottnerDate: 2003-09-25 20:03:57
Subject: Re: [HACKERS] Threads vs Processes

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group