]> git.proxmox.com Git - qemu.git/commit
timer: add timer_mod_anticipate and timer_mod_anticipate_ns
authorPaolo Bonzini <pbonzini@redhat.com>
Thu, 3 Oct 2013 13:11:43 +0000 (15:11 +0200)
committerPaolo Bonzini <pbonzini@redhat.com>
Thu, 17 Oct 2013 15:31:00 +0000 (17:31 +0200)
commitadd40e9777de139fb317ca6b1fb0dc142601cfcd
treebec5acdd2592edaa95f52afd6ec2526e7f390c49
parent0f809e5fbebb36788aea3523be7f93c04f2c7f8c
timer: add timer_mod_anticipate and timer_mod_anticipate_ns

These let a user anticipate the deadline of a timer, atomically with
other sites that call the function.  This helps avoiding complicated
lock hierarchies.

Reviewed-by: Alex Bligh <alex@alex.org.uk>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
include/qemu/timer.h
qemu-timer.c