Skip to content
Commit b60ec76a authored by Peter Xu's avatar Peter Xu Committed by Stefan Hajnoczi
Browse files

iothread: push gcontext earlier in the thread_fn



We were pushing the context until right before running the gmainloop.
Now since we have everything unconditionally, we can move this
earlier.

One benefit is that now it's done even before init_done_sem, so as
long as the iothread user calls iothread_create() and completes, we
know that the thread stack is ready.

Signed-off-by: default avatarPeter Xu <peterx@redhat.com>
Message-id: 20190306115532.23025-5-peterx@redhat.com
Message-Id: <20190306115532.23025-5-peterx@redhat.com>

[Tweaked comment wording as discussed with Peter Xu.
--Stefan]

Signed-off-by: default avatarStefan Hajnoczi <stefanha@redhat.com>
parent 0bd2d233
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment