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
