static void do_spawn_thread(ThreadPool *pool)

{

    QemuThread t;



    /* Runs with lock taken.  */

    if (!pool->new_threads) {

        return;

    }



    pool->new_threads--;

    pool->pending_threads++;



    qemu_thread_create(&t, "worker", worker_thread, pool, QEMU_THREAD_DETACHED);

}

static void do_spawn_thread(ThreadPool *pool)

{

    QemuThread t;



    

    if (!pool->new_threads) {

        return;

    }



    pool->new_threads--;

    pool->pending_threads++;



    qemu_thread_create(&t, "worker", worker_thread, pool, QEMU_THREAD_DETACHED);

}

static void FUNC_0(ThreadPool *VAR_0)

{

    QemuThread t;



    

    if (!VAR_0->new_threads) {

        return;

    }



    VAR_0->new_threads--;

    VAR_0->pending_threads++;



    qemu_thread_create(&t, "worker", worker_thread, VAR_0, QEMU_THREAD_DETACHED);

}

static void FUNC_0(ThreadPool *VAR_0)
{ QemuThread t; if (!VAR_0->new_threads) { return; } VAR_0->new_threads--; VAR_0->pending_threads++; qemu_thread_create(&t, "worker", worker_thread, VAR_0, QEMU_THREAD_DETACHED); }