Skip to content

Commit

Permalink
Clarify qemu_bh_schedule_idle() usage
Browse files Browse the repository at this point in the history
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>



git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@5576 c046a42c-6fe2-441c-8c8c-71466251a162
  • Loading branch information
aliguori committed Oct 31, 2008
1 parent 5ccfae1 commit 80d3580
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions qemu-common.h
Expand Up @@ -70,6 +70,12 @@ typedef void QEMUBHFunc(void *opaque);

QEMUBH *qemu_bh_new(QEMUBHFunc *cb, void *opaque);
void qemu_bh_schedule(QEMUBH *bh);
/* Bottom halfs that are scheduled from a bottom half handler are instantly
* invoked. This can create an infinite loop if a bottom half handler
* schedules itself. qemu_bh_schedule_idle() avoids this infinite loop by
* ensuring that the bottom half isn't executed until the next main loop
* iteration.
*/
void qemu_bh_schedule_idle(QEMUBH *bh);
void qemu_bh_cancel(QEMUBH *bh);
void qemu_bh_delete(QEMUBH *bh);
Expand Down

0 comments on commit 80d3580

Please sign in to comment.