Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit53ddde5

Browse files
committed
Add volatile to thread-specific thread variables.
1 parent31f48c9 commit53ddde5

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

‎src/tools/thread/thread_test.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
* Portions Copyright (c) 1996-2003, PostgreSQL Global Development Group
77
* Portions Copyright (c) 1994, Regents of the University of California
88
*
9-
*$PostgreSQL: pgsql/src/tools/thread/thread_test.c,v 1.11 2004/04/0501:27:58 momjian Exp $
9+
*$PostgreSQL: pgsql/src/tools/thread/thread_test.c,v 1.12 2004/04/0502:22:14 momjian Exp $
1010
*
1111
*This program tests to see if your standard libc functions use
1212
*pthread_setspecific()/pthread_getspecific() to be thread-safe.
@@ -37,8 +37,8 @@ void func_call_2(void);
3737

3838
charmyhostname[MAXHOSTNAMELEN];
3939

40-
interrno1_set=0;
41-
interrno2_set=0;
40+
volatileinterrno1_set=0;
41+
volatileinterrno2_set=0;
4242

4343
char*strerror_p1;
4444
char*strerror_p2;

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp