summaryrefslogtreecommitdiffstats
path: root/hw/ccid-card-emulated.c
diff options
context:
space:
mode:
authorJan Kiszka2011-12-12 17:21:31 +0100
committerAnthony Liguori2011-12-13 00:06:22 +0100
commitcf218714791a78c91db34a4aa9e33348923ad659 (patch)
tree3ebd3e50d5360b505c3b89ff5659e428789e5367 /hw/ccid-card-emulated.c
parentsyborg: drop support for Symbian Virtual Platform (diff)
downloadqemu-cf218714791a78c91db34a4aa9e33348923ad659.tar.gz
qemu-cf218714791a78c91db34a4aa9e33348923ad659.tar.xz
qemu-cf218714791a78c91db34a4aa9e33348923ad659.zip
qemu-thread: add API for joinable threads
Split from Jan's original qemu-thread-posix.c patch. No semantic change, just introduce the new API that POSIX and Win32 implementations will conform to. Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Diffstat (limited to 'hw/ccid-card-emulated.c')
-rw-r--r--hw/ccid-card-emulated.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/hw/ccid-card-emulated.c b/hw/ccid-card-emulated.c
index 092301b541..9fe9db5c45 100644
--- a/hw/ccid-card-emulated.c
+++ b/hw/ccid-card-emulated.c
@@ -541,8 +541,9 @@ static int emulated_initfn(CCIDCardState *base)
printf("%s: failed to initialize vcard\n", EMULATED_DEV_NAME);
return -1;
}
- qemu_thread_create(&thread_id, event_thread, card);
- qemu_thread_create(&thread_id, handle_apdu_thread, card);
+ qemu_thread_create(&thread_id, event_thread, card, QEMU_THREAD_DETACHED);
+ qemu_thread_create(&thread_id, handle_apdu_thread, card,
+ QEMU_THREAD_DETACHED);
return 0;
}