Lines Matching full:thread

2  * Wrappers around mutex/cond/thread functions
14 #include "qemu/thread.h"
17 #include "qemu-thread-common.h"
36 fprintf(stderr, "qemu: thread naming not supported on this host\n"); in qemu_thread_naming()
323 * Note that in this implementation you can register a thread-exit
324 * notifier for the main thread, but it will never be called.
325 * This is OK because main thread exit can only happen when the
342 * Called when non-main thread exits (via qemu_thread_exit() in qemu_thread_atexit_notify()
380 * qemu-thread-posix.c:540:5: error: ‘__sigsetjmp’ accessing 656 bytes in qemu_thread_start()
401 void qemu_thread_create(QemuThread *thread, const char *name, in qemu_thread_create() argument
433 err = pthread_create(&thread->thread, &attr, in qemu_thread_create()
444 int qemu_thread_set_affinity(QemuThread *thread, unsigned long *host_cpus, in qemu_thread_set_affinity() argument
463 err = pthread_setaffinity_np(thread->thread, setsize, cpuset); in qemu_thread_set_affinity()
471 int qemu_thread_get_affinity(QemuThread *thread, unsigned long **host_cpus, in qemu_thread_get_affinity() argument
486 err = pthread_getaffinity_np(thread->thread, setsize, cpuset); in qemu_thread_get_affinity()
513 void qemu_thread_get_self(QemuThread *thread) in qemu_thread_get_self() argument
515 thread->thread = pthread_self(); in qemu_thread_get_self()
518 bool qemu_thread_is_self(QemuThread *thread) in qemu_thread_is_self() argument
520 return pthread_equal(pthread_self(), thread->thread); in qemu_thread_is_self()
528 void *qemu_thread_join(QemuThread *thread) in qemu_thread_join() argument
533 err = pthread_join(thread->thread, &ret); in qemu_thread_join()