Commit 2e612797 authored by Eli Zaretskii's avatar Eli Zaretskii
Browse files

Use 'volatile' types for communications between timer thread and main thread.

parent 15cc05e9
......@@ -4,8 +4,8 @@
possible, for ITIMER_PROF count only times the main thread
actually executes.
* w32proc.c <struct itimer_data>: 'expire' and 'reload' are now
ULONGLONG types. Likewise for all the other data which was
previously clock_t.
'volatile ULONGLONG' types. All the other data which was
previously clock_t is now ULONGLONG. 'terminate' is 'volatile int'.
(GetThreadTimes_Proc): New typedef.
(w32_get_timer_time): New function, returns a suitable time value
for the timer.
......@@ -245,9 +245,9 @@ setpgrp (int pid, int gid)
expires, after stopping the thread which installed the timer. */
struct itimer_data {
int terminate;
volatile ULONGLONG expire;
volatile ULONGLONG reload;
volatile int terminate;
int type;
HANDLE caller_thread;
HANDLE timer_thread;
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment