[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [v8 05/14] arch_init: Alloc and free data struct for co
From: |
Paolo Bonzini |
Subject: |
Re: [Qemu-devel] [v8 05/14] arch_init: Alloc and free data struct for compression |
Date: |
Thu, 07 May 2015 15:00:20 +0200 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.5.0 |
On 15/04/2015 11:26, Liang Li wrote:
> @@ -378,7 +402,18 @@ void migrate_compress_threads_create(void)
> thread_count = migrate_compress_threads();
> compress_threads = g_new0(QemuThread, thread_count);
> comp_param = g_new0(CompressParam, thread_count);
> + comp_done_cond = g_new0(QemuCond, 1);
> + comp_done_lock = g_new0(QemuMutex, 1);
> + qemu_cond_init(comp_done_cond);
> + qemu_mutex_init(comp_done_lock);
Please make a struct that includes a QemuThread *, a CompressParam *,
the QemuCond and the QemuMutex.
Paolo
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- Re: [Qemu-devel] [v8 05/14] arch_init: Alloc and free data struct for compression,
Paolo Bonzini <=