Check and set thread-safe functions separately, rather than as a single
Bruce Momjian <bruce@momjian.us>
Check and set thread-safe functions separately, rather than as a single variable. Remove thread locking for non-thread-safe functions, instead throw a compile error. Platforms will have to re-run tools/thread to record their thread safety.
Files
| Path | Change | +/− |
|---|---|---|
| configure | modified | +32 −15 |
| configure.in | modified | +24 −15 |
| src/include/pg_config.h.in | modified | +9 −3 |
| src/port/thread.c | modified | +16 −136 |
| src/template/bsdi | modified | +4 −1 |
| src/template/freebsd | modified | +1 −2 |
| src/template/linux | modified | +1 −2 |
| src/template/netbsd | modified | +1 −2 |
| src/template/osf | modified | +1 −2 |
| src/template/solaris | modified | +1 −2 |
| src/template/unixware | modified | +1 −2 |
| src/tools/thread/thread_test.c | modified | +44 −60 |