We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d09640d commit a33ea18Copy full SHA for a33ea18
conformance/interfaces/pthread_setcanceltype/1-1.c
@@ -35,8 +35,8 @@
35
# define INMAIN 1 /* Control going to or is already for Main */
36
# define TIMEOUT 10 /* Time out time in seconds */
37
38
-int sem1; /* Manual semaphore */
39
-int cleanup_flag; /* Flag to indicate the thread's cleanup handler was called */
+volatile int sem1; /* Manual semaphore */
+volatile int cleanup_flag; /* Flag to indicate the thread's cleanup handler was called */
40
pthread_mutex_t mutex = PTHREAD_MUTEX_INITIALIZER; /* Mutex */
41
42
0 commit comments