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.
expires, after stopping the thread which installed the timer. */
struct itimer_data {
- ULONGLONG expire;
- ULONGLONG reload;
- int terminate;
+ volatile ULONGLONG expire;
+ volatile ULONGLONG reload;
+ volatile int terminate;
int type;
HANDLE caller_thread;
HANDLE timer_thread;