Revision f64382ba vl.c
b/vl.c | ||
---|---|---|
1159 | 1159 |
return delta; |
1160 | 1160 |
} |
1161 | 1161 |
|
1162 |
#if defined(__linux__) || defined(_WIN32)
|
|
1162 |
#if defined(__linux__) |
|
1163 | 1163 |
static uint64_t qemu_next_deadline_dyntick(void) |
1164 | 1164 |
{ |
1165 | 1165 |
int64_t delta; |
... | ... | |
1468 | 1468 |
static void win32_rearm_timer(struct qemu_alarm_timer *t) |
1469 | 1469 |
{ |
1470 | 1470 |
struct qemu_alarm_win32 *data = t->priv; |
1471 |
uint64_t nearest_delta_us; |
|
1472 | 1471 |
|
1473 | 1472 |
if (!active_timers[QEMU_CLOCK_REALTIME] && |
1474 | 1473 |
!active_timers[QEMU_CLOCK_VIRTUAL]) |
1475 | 1474 |
return; |
1476 | 1475 |
|
1477 |
nearest_delta_us = qemu_next_deadline_dyntick(); |
|
1478 |
nearest_delta_us /= 1000; |
|
1479 |
|
|
1480 | 1476 |
timeKillEvent(data->timerId); |
1481 | 1477 |
|
1482 | 1478 |
data->timerId = timeSetEvent(1, |
Also available in: Unified diff