port/thread.c and pthreads

Started by Magnus Haganderover 17 years ago6 messages
#1Magnus Hagander
magnus@hagander.net

port/thread.c includes the pthreads header files, and contains a bunch
of comments about pthreads - but there seems to be no code related to
pthreads at all in the file. Am I missing something completely here? ;-)

//Magnus

#2Bruce Momjian
bruce@momjian.us
In reply to: Magnus Hagander (#1)
Re: port/thread.c and pthreads

Magnus Hagander wrote:

port/thread.c includes the pthreads header files, and contains a bunch
of comments about pthreads - but there seems to be no code related to
pthreads at all in the file. Am I missing something completely here? ;-)

Uh, those files are thread-safe/reentrant versions of libc functions. I
don't think they need the pthread.h includes. You want to try removing
those includes and see how the buildfarm behaves?

--
Bruce Momjian <bruce@momjian.us> http://momjian.us
EnterpriseDB http://enterprisedb.com

+ If your life is a hard drive, Christ can be your backup. +

#3Magnus Hagander
magnus@hagander.net
In reply to: Bruce Momjian (#2)
Re: port/thread.c and pthreads

Bruce Momjian wrote:

Magnus Hagander wrote:

port/thread.c includes the pthreads header files, and contains a
bunch of comments about pthreads - but there seems to be no code
related to pthreads at all in the file. Am I missing something
completely here? ;-)

Uh, those files are thread-safe/reentrant versions of libc
functions. I don't think they need the pthread.h includes. You want
to try removing those includes and see how the buildfarm behaves?

Done, let's see what happens...

//Magnus

#4Alvaro Herrera
alvherre@commandprompt.com
In reply to: Magnus Hagander (#3)
Re: port/thread.c and pthreads

Magnus Hagander wrote:

Bruce Momjian wrote:

Uh, those files are thread-safe/reentrant versions of libc
functions. I don't think they need the pthread.h includes. You want
to try removing those includes and see how the buildfarm behaves?

Done, let's see what happens...

Apparently the world failed to end.

--
Alvaro Herrera http://www.CommandPrompt.com/
PostgreSQL Replication, Consulting, Custom Development, 24x7 support

#5Magnus Hagander
magnus@hagander.net
In reply to: Alvaro Herrera (#4)
Re: port/thread.c and pthreads

Alvaro Herrera wrote:

Magnus Hagander wrote:

Bruce Momjian wrote:

Uh, those files are thread-safe/reentrant versions of libc
functions. I don't think they need the pthread.h includes. You
want to try removing those includes and see how the buildfarm
behaves?

Done, let's see what happens...

Apparently the world failed to end.

Almost a bit disappointing ;-)

//Magnus

#6Bruce Momjian
bruce@momjian.us
In reply to: Magnus Hagander (#5)
Re: port/thread.c and pthreads

Magnus Hagander wrote:

Alvaro Herrera wrote:

Magnus Hagander wrote:

Bruce Momjian wrote:

Uh, those files are thread-safe/reentrant versions of libc
functions. I don't think they need the pthread.h includes. You
want to try removing those includes and see how the buildfarm
behaves?

Done, let's see what happens...

Apparently the world failed to end.

Almost a bit disappointing ;-)

:-) All that threading stuff was done before we had a buildfarm so
everything was a big guess.

--
Bruce Momjian <bruce@momjian.us> http://momjian.us
EnterpriseDB http://enterprisedb.com

+ If your life is a hard drive, Christ can be your backup. +