summaryrefslogtreecommitdiffstats
path: root/qapi-schema.json
diff options
context:
space:
mode:
authorStefan Hajnoczi2014-02-27 11:48:41 +0100
committerStefan Hajnoczi2014-03-13 14:42:24 +0100
commit88eb7c29e4320597d2f246adf731f0aac97cfbcc (patch)
tree2044aec8594d144fe48380f095110abd1bf97199 /qapi-schema.json
parentdataplane: replace internal thread with IOThread (diff)
downloadqemu-88eb7c29e4320597d2f246adf731f0aac97cfbcc.tar.gz
qemu-88eb7c29e4320597d2f246adf731f0aac97cfbcc.tar.xz
qemu-88eb7c29e4320597d2f246adf731f0aac97cfbcc.zip
iothread: stash thread ID away
Keep the thread ID around so we can report it via QMP. There's only one problem: qemu_get_thread_id() (gettid() wrapper on Linux) must be called from the thread itself. There is no way to get the thread ID outside the thread. This patch uses a condvar to wait for iothread_run() to populate the thread_id inside the thread. Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
Diffstat (limited to 'qapi-schema.json')
0 files changed, 0 insertions, 0 deletions