1
0
mirror of https://github.com/postgres/postgres.git synced 2025-07-05 07:21:24 +03:00

Attempt threading in this order:

*      use non-*_r function names if they are all thread-safe
 *          (NEED_REENTRANT_FUNCS=no)
 *      use *_r functions if they exist (configure test)
 *      do our own locking and copying of non-threadsafe functions

New to this patch is the last option.
This commit is contained in:
Bruce Momjian
2003-09-13 14:49:51 +00:00
parent 509a9cd3f9
commit b041d3e3a1
10 changed files with 176 additions and 37 deletions

View File

@ -1,7 +1,7 @@
CFLAGS=-O2
SUPPORTS_THREADS=yes
NEED_REENTRANT_FUNC_NAMES=yes # verified glibc 2.1 2003-09-03
NEED_REENTRANT_FUNCS=yes # verified glibc 2.1 2003-09-03
THREAD_CFLAGS="-D_REENTRANT -D_THREAD_SAFE -D_POSIX_PTHREAD_SEMANTICS"
THREAD_LIBS="-lpthread"