aboutsummaryrefslogtreecommitdiffstats
path: root/thread_pthread.h
diff options
context:
space:
mode:
Diffstat (limited to 'thread_pthread.h')
-rw-r--r--thread_pthread.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/thread_pthread.h b/thread_pthread.h
index e693fba299..f180a79d27 100644
--- a/thread_pthread.h
+++ b/thread_pthread.h
@@ -38,7 +38,7 @@ typedef struct rb_global_vm_lock_struct {
pthread_mutex_t lock;
/* slow path */
- unsigned long waiting;
+ volatile unsigned long waiting;
rb_thread_cond_t cond;
/* yield */