Lines Matching full:thread
22 #include "qemu/thread.h"
44 error_setg(errp, "Unable to get thread CPU usage"); in qcrypto_pbkdf2_get_thread_cpu()
55 mach_port_t thread; in qcrypto_pbkdf2_get_thread_cpu()
60 thread = mach_thread_self(); in qcrypto_pbkdf2_get_thread_cpu()
62 kr = thread_info(thread, THREAD_BASIC_INFO, (thread_info_t)&info, &count); in qcrypto_pbkdf2_get_thread_cpu()
63 mach_port_deallocate(mach_task_self(), thread); in qcrypto_pbkdf2_get_thread_cpu()
65 error_setg_errno(errp, errno, "Unable to get thread CPU usage"); in qcrypto_pbkdf2_get_thread_cpu()
75 error_setg_errno(errp, errno, "Unable to get thread CPU usage"); in qcrypto_pbkdf2_get_thread_cpu()
84 error_setg(errp, "Unable to calculate thread CPU usage on this platform"); in qcrypto_pbkdf2_get_thread_cpu()
176 QemuThread thread; in qcrypto_pbkdf2_count_iters() local
178 qemu_thread_create(&thread, "pbkdf2", threaded_qcrypto_pbkdf2_count_iters, in qcrypto_pbkdf2_count_iters()
180 qemu_thread_join(&thread); in qcrypto_pbkdf2_count_iters()