[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH v2 09/15] qio: non-default context for threaded
From: |
Paolo Bonzini |
Subject: |
Re: [Qemu-devel] [PATCH v2 09/15] qio: non-default context for threaded qtask |
Date: |
Thu, 1 Mar 2018 18:18:32 +0100 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.6.0 |
On 01/03/2018 09:44, Peter Xu wrote:
> + * @context: the context to run the complete hook
Please note the behavior for NULL context here, too.
Paolo
> * Run a task in a background thread. When @worker
> * returns it will call qio_task_complete() in
> - * the main event thread context.
> + * the event thread context that provided.
> */
> void qio_task_run_in_thread(QIOTask *task,
> QIOTaskWorker worker,
> gpointer opaque,
> - GDestroyNotify destroy);
> + GDestroyNotify destroy,
> + GMainContext *context);
- [Qemu-devel] [PATCH v2 08/15] chardev: allow telnet gsource to switch gcontext, (continued)
- [Qemu-devel] [PATCH v2 10/15] qio: non-default context for async conn, Peter Xu, 2018/03/01
- [Qemu-devel] [PATCH v2 09/15] qio: non-default context for threaded qtask, Peter Xu, 2018/03/01
- [Qemu-devel] [PATCH v2 11/15] qio: non-default context for TLS handshake, Peter Xu, 2018/03/01
- [Qemu-devel] [PATCH v2 12/15] chardev: introduce chr_machine_done hook, Peter Xu, 2018/03/01
- [Qemu-devel] [PATCH v2 13/15] char: use chardev's gcontext for async connect, Peter Xu, 2018/03/01
- [Qemu-devel] [PATCH v2 14/15] chardev: tcp: postpone async connection setup, Peter Xu, 2018/03/01