summaryrefslogtreecommitdiff
path: root/hw/ccid-card-emulated.c
diff options
context:
space:
mode:
authorJan Kiszka <jan.kiszka@siemens.com>2011-12-12 17:21:31 +0100
committerAnthony Liguori <aliguori@us.ibm.com>2011-12-12 17:06:22 -0600
commitcf218714791a78c91db34a4aa9e33348923ad659 (patch)
tree3ebd3e50d5360b505c3b89ff5659e428789e5367 /hw/ccid-card-emulated.c
parentd396a657baec8c6b7aa0c888746e0e2f78303650 (diff)
downloadqemu-cf218714791a78c91db34a4aa9e33348923ad659.tar.gz
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;
}