diff options
| author | Eli Zaretskii | 2012-10-27 21:32:30 +0200 |
|---|---|---|
| committer | Eli Zaretskii | 2012-10-27 21:32:30 +0200 |
| commit | 2e612797ce51736ccdcd1076b3d0f36eb4c17182 (patch) | |
| tree | c2b35aa3d8b325a7c3927fb724ef034ebd32f0c8 /src/w32proc.c | |
| parent | 15cc05e98486f43b21aaf6e7428fa9f08ddd9e94 (diff) | |
| download | emacs-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.c | 6 |
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 | ||
| 247 | struct itimer_data { | 247 | struct 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; |