aboutsummaryrefslogtreecommitdiffstats
path: root/src/w32proc.c
diff options
context:
space:
mode:
authorEli Zaretskii2012-10-27 21:32:30 +0200
committerEli Zaretskii2012-10-27 21:32:30 +0200
commit2e612797ce51736ccdcd1076b3d0f36eb4c17182 (patch)
treec2b35aa3d8b325a7c3927fb724ef034ebd32f0c8 /src/w32proc.c
parent15cc05e98486f43b21aaf6e7428fa9f08ddd9e94 (diff)
downloademacs-2e612797ce51736ccdcd1076b3d0f36eb4c17182.tar.gz
emacs-2e612797ce51736ccdcd1076b3d0f36eb4c17182.zip
Use 'volatile' types for communications between timer thread and main thread.
Diffstat (limited to 'src/w32proc.c')
-rw-r--r--src/w32proc.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/w32proc.c b/src/w32proc.c
index 6accf2224c5..af656f915c7 100644
--- a/src/w32proc.c
+++ b/src/w32proc.c
@@ -245,9 +245,9 @@ setpgrp (int pid, int gid)
245 expires, after stopping the thread which installed the timer. */ 245 expires, after stopping the thread which installed the timer. */
246 246
247struct itimer_data { 247struct itimer_data {
248 ULONGLONG expire; 248 volatile ULONGLONG expire;
249 ULONGLONG reload; 249 volatile ULONGLONG reload;
250 int terminate; 250 volatile int terminate;
251 int type; 251 int type;
252 HANDLE caller_thread; 252 HANDLE caller_thread;
253 HANDLE timer_thread; 253 HANDLE timer_thread;