Skip to content

Commit

Permalink
chardev: add a note about frontend sources and context switch
Browse files Browse the repository at this point in the history
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Message-Id: <20190206174328.9736-5-marcandre.lureau@redhat.com>
Reviewed-by: Paolo Bonzini <pbonzini@redhat.com>
  • Loading branch information
elmarco committed Feb 13, 2019
1 parent b1f1103 commit 64c3f26
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions include/chardev/char-fe.h
Expand Up @@ -184,6 +184,9 @@ void qemu_chr_fe_printf(CharBackend *be, const char *fmt, ...)
* is active; return the #GSource's tag. If it is disconnected,
* or without associated Chardev, return 0.
*
* Note that you are responsible to update the front-end sources if
* you are switching the main context with qemu_chr_fe_set_handlers().
*
* Returns: the source tag
*/
guint qemu_chr_fe_add_watch(CharBackend *be, GIOCondition cond,
Expand Down

0 comments on commit 64c3f26

Please sign in to comment.