Re: Threads vs Processes - Mailing list pgsql-hackers

From Tom Lane
Subject Re: Threads vs Processes
Date
Msg-id 4612.1064531700@sss.pgh.pa.us
Whole thread Raw
In response to Re: Threads vs Processes  ("Merlin Moncure" <merlin.moncure@rcsonline.com>)
Responses Re: Threads vs Processes  (Kurt at DBC <kurtw@dbc.co.nz>)
List pgsql-hackers
"Merlin Moncure" <merlin.moncure@rcsonline.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

pgsql-hackers by date:

Previous
From: Robert Treat
Date:
Subject: Re: PL contribution guidelines?
Next
From: Myron Scott
Date:
Subject: Re: Threads vs Processes