Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
Postgres FD Implementation
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Abuhujair Javed
Postgres FD Implementation
Commits
38eb1809
Commit
38eb1809
authored
Sep 03, 2003
by
Bruce Momjian
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Tighten casting of function call pointers for threads.
parent
ee4ae6ce
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
src/template/linux
src/template/linux
+1
-1
src/tools/test_thread_funcs.c
src/tools/test_thread_funcs.c
+3
-3
No files found.
src/template/linux
View file @
38eb1809
CFLAGS=-O2
CFLAGS=-O2
SUPPORTS_THREADS=yes
SUPPORTS_THREADS=yes
NEED_REENTRANT_FUNC_NAMES=yes
NEED_REENTRANT_FUNC_NAMES=yes
# verified glibc 2.1 2003-09-03
THREAD_CFLAGS="-D_REENTRANT -D_THREAD_SAFE -D_POSIX_PTHREAD_SEMANTICS"
THREAD_CFLAGS="-D_REENTRANT -D_THREAD_SAFE -D_POSIX_PTHREAD_SEMANTICS"
THREAD_LIBS="-lpthread"
THREAD_LIBS="-lpthread"
src/tools/test_thread_funcs.c
View file @
38eb1809
...
@@ -6,7 +6,7 @@
...
@@ -6,7 +6,7 @@
* Portions Copyright (c) 1996-2003, PostgreSQL Global Development Group
* Portions Copyright (c) 1996-2003, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
* Portions Copyright (c) 1994, Regents of the University of California
*
*
* $Header: /cvsroot/pgsql/src/tools/Attic/test_thread_funcs.c,v 1.
2 2003/09/03 19:36:31
momjian Exp $
* $Header: /cvsroot/pgsql/src/tools/Attic/test_thread_funcs.c,v 1.
3 2003/09/03 22:34:08
momjian Exp $
*
*
* This program tests to see if your standard libc functions use
* This program tests to see if your standard libc functions use
* pthread_setspecific()/pthread_getspecific() to be thread-safe.
* pthread_setspecific()/pthread_getspecific() to be thread-safe.
...
@@ -57,8 +57,8 @@ int main(int argc, char *argv[])
...
@@ -57,8 +57,8 @@ int main(int argc, char *argv[])
return
1
;
return
1
;
}
}
pthread_create
(
&
thread1
,
NULL
,
(
void
*
)
func_call_1
,
NULL
);
pthread_create
(
&
thread1
,
NULL
,
(
void
*
(
*
)(
void
*
)
)
func_call_1
,
NULL
);
pthread_create
(
&
thread2
,
NULL
,
(
void
*
)
func_call_2
,
NULL
);
pthread_create
(
&
thread2
,
NULL
,
(
void
*
(
*
)(
void
*
)
)
func_call_2
,
NULL
);
pthread_join
(
thread1
,
NULL
);
pthread_join
(
thread1
,
NULL
);
pthread_join
(
thread2
,
NULL
);
pthread_join
(
thread2
,
NULL
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment