Skip to content

Commit a33ea18

Browse files
committed
Fix missing volatile on pthread_setcanceltype/1-1.c
1 parent d09640d commit a33ea18

File tree

1 file changed

+2
-2
lines changed
  • conformance/interfaces/pthread_setcanceltype

1 file changed

+2
-2
lines changed

conformance/interfaces/pthread_setcanceltype/1-1.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,8 @@
3535
# define INMAIN 1 /* Control going to or is already for Main */
3636
# define TIMEOUT 10 /* Time out time in seconds */
3737

38-
int sem1; /* Manual semaphore */
39-
int cleanup_flag; /* Flag to indicate the thread's cleanup handler was called */
38+
volatile int sem1; /* Manual semaphore */
39+
volatile int cleanup_flag; /* Flag to indicate the thread's cleanup handler was called */
4040
pthread_mutex_t mutex = PTHREAD_MUTEX_INITIALIZER; /* Mutex */
4141

4242

0 commit comments

Comments
 (0)