Searched refs:max_threads (Results 1 – 8 of 8) sorted by relevance
/qemu/tests/tcg/multiarch/ |
H A D | threadcount.c | 22 int max_threads = 10; variable 42 max_threads = atoi(argv[1]); in main() 44 threads = calloc(sizeof(pthread_t), max_threads); in main() 46 for (i = 0; i < max_threads; i++) { in main() 52 printf("Created %d threads\n", max_threads); in main() 55 usleep(max_threads * 50); in main() 57 for (i = 0; i < max_threads; i++) { in main()
|
H A D | signals.c | 57 static int max_threads = 10; variable 77 threads = calloc(sizeof(pthread_t), max_threads); in spawn_threads() 79 for (i = 0; i < max_threads; i++) { in spawn_threads() 91 for (i = 0; i < max_threads; i++) { in close_threads()
|
/qemu/util/ |
H A D | thread-pool.c | 74 int max_threads; member 85 while (pool->cur_threads <= pool->max_threads) { in worker_thread() 262 if (pool->idle_threads == 0 && pool->cur_threads < pool->max_threads) { in thread_pool_submit_aio() 303 pool->max_threads = ctx->thread_pool_max; in thread_pool_update_params() 318 for (int i = pool->cur_threads; i > pool->max_threads; i--) { in thread_pool_update_params() 368 pool->max_threads = 0; in thread_pool_free()
|
H A D | oslib-posix.c | 402 int max_threads) in get_memset_num_threads() argument 408 ret = MIN(MIN(host_procs, MAX_MEM_PREALLOC_THREAD_COUNT), max_threads); in get_memset_num_threads() 437 int max_threads, ThreadContext *tc, bool async, in touch_all_pages() argument 456 get_memset_num_threads(hpagesize, numpages, max_threads); in touch_all_pages() 571 bool qemu_prealloc_mem(int fd, char *area, size_t sz, int max_threads, in qemu_prealloc_mem() argument 614 ret = touch_all_pages(area, hpagesize, numpages, max_threads, tc, async, in qemu_prealloc_mem()
|
H A D | oslib-win32.c | 267 bool qemu_prealloc_mem(int fd, char *area, size_t sz, int max_threads, in qemu_prealloc_mem() argument
|
/qemu/include/hw/s390x/ |
H A D | s390-virtio-ccw.h | 50 int max_threads; member
|
/qemu/hw/s390x/ |
H A D | s390-virtio-ccw.c | 78 if (machine->smp.threads > s390mc->max_threads) { in s390_init_cpus() 80 s390mc->max_threads); in s390_init_cpus() 751 s390mc->max_threads = 1; in ccw_machine_class_init() 940 s390mc->max_threads = S390_MAX_CPUS; in ccw_machine_7_1_class_options()
|
/qemu/include/qemu/ |
H A D | osdep.h | 705 bool qemu_prealloc_mem(int fd, char *area, size_t sz, int max_threads,
|