[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH 04/19] fix error in win32_rearm_timer
From: |
Paolo Bonzini |
Subject: |
[Qemu-devel] [PATCH 04/19] fix error in win32_rearm_timer |
Date: |
Mon, 21 Dec 2009 09:09:15 +0100 |
The TIME_ONESHOT and TIME_PERIODIC flags are mutually exclusive.
The code after the patch matches the flags used in win32_start_timer.
Signed-off-by: Paolo Bonzini <address@hidden>
---
vl.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/vl.c b/vl.c
index 22ec53d..58e57c1 100644
--- a/vl.c
+++ b/vl.c
@@ -1598,7 +1598,7 @@ static void win32_rearm_timer(struct qemu_alarm_timer *t)
data->period,
host_alarm_handler,
(DWORD)t,
- TIME_ONESHOT | TIME_PERIODIC);
+ TIME_ONESHOT | TIME_CALLBACK_FUNCTION);
if (!data->timerId) {
fprintf(stderr, "Failed to re-arm win32 alarm timer %ld\n",
--
1.6.5.2
- [Qemu-devel] [PATCH 00/19][RFC] Cleanups + split timer handling out of vl.o, Paolo Bonzini, 2009/12/21
- [Qemu-devel] [PATCH 01/19] centralize handling of -icount, Paolo Bonzini, 2009/12/21
- [Qemu-devel] [PATCH 02/19] add qemu_icount_round, Paolo Bonzini, 2009/12/21
- [Qemu-devel] [PATCH 03/19] avoid dubiously clever code in win32_start_timer, Paolo Bonzini, 2009/12/21
- [Qemu-devel] [PATCH 05/19] only one flag is needed for alarm_timer, Paolo Bonzini, 2009/12/21
- [Qemu-devel] [PATCH 04/19] fix error in win32_rearm_timer,
Paolo Bonzini <=
- [Qemu-devel] [PATCH 07/19] add qemu_get_clock_ns, Paolo Bonzini, 2009/12/21
- [Qemu-devel] [PATCH 09/19] remove qemu_rearm_alarm_timer from main loop, Paolo Bonzini, 2009/12/21
- [Qemu-devel] [PATCH 08/19] move kbd/mouse events to event.c, Paolo Bonzini, 2009/12/21
- [Qemu-devel] [PATCH 11/19] use a bottom half to run timers, Paolo Bonzini, 2009/12/21
[Qemu-devel] [PATCH 10/19] add qemu_bh_scheduled, Paolo Bonzini, 2009/12/21
[Qemu-devel] [PATCH 06/19] more alarm timer cleanup, Paolo Bonzini, 2009/12/21