[Qemu-devel] [PATCH 2/3] qemu-timer: add QEMUClock-active_timers list lock

2013-07-05 Thread Stefan Hajnoczi
This patch makes QEMUClock-active_timers list iteration thread-safe. With additional patches, this will allow threads to use timers without holding the QEMU global mutex. The qemu_next_alarm_deadline() function was restructured to reduce code duplication, which would have gotten worse due to the

Re: [Qemu-devel] [PATCH 2/3] qemu-timer: add QEMUClock-active_timers list lock

2013-07-05 Thread Paolo Bonzini
Il 05/07/2013 14:39, Stefan Hajnoczi ha scritto: This patch makes QEMUClock-active_timers list iteration thread-safe. With additional patches, this will allow threads to use timers without holding the QEMU global mutex. The qemu_next_alarm_deadline() function was restructured to reduce code