mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-07 09:43:56 -06:00
Add a 'name' parameter to qemu_thread_create
If enabled, set the thread name at creation (on GNU systems with pthread_set_np) Fix up all the callers with a thread name Signed-off-by: Dr. David Alan Gilbert <dgilbert@redhat.com> Acked-by: Michael S. Tsirkin <mst@redhat.com> Reviewed-by: Laszlo Ersek <lersek@redhat.com>
This commit is contained in:
parent
8f480de0c9
commit
4900116e6f
11 changed files with 41 additions and 19 deletions
|
@ -546,10 +546,10 @@ static int emulated_initfn(CCIDCardState *base)
|
|||
printf("%s: failed to initialize vcard\n", EMULATED_DEV_NAME);
|
||||
return -1;
|
||||
}
|
||||
qemu_thread_create(&card->event_thread_id, event_thread, card,
|
||||
QEMU_THREAD_JOINABLE);
|
||||
qemu_thread_create(&card->apdu_thread_id, handle_apdu_thread, card,
|
||||
QEMU_THREAD_JOINABLE);
|
||||
qemu_thread_create(&card->event_thread_id, "ccid/event", event_thread,
|
||||
card, QEMU_THREAD_JOINABLE);
|
||||
qemu_thread_create(&card->apdu_thread_id, "ccid/apdu", handle_apdu_thread,
|
||||
card, QEMU_THREAD_JOINABLE);
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue