Merge tag 'v9.0.0-rc3'
[qemu/ar7.git] / migration / threadinfo.h
blob2f356ff3127ec57edc7bba86b896bad8dde839e7
1 /*
2 * Migration Threads info
4 * Copyright (c) 2022 HUAWEI TECHNOLOGIES CO., LTD.
6 * Authors:
7 * Jiang Jiacheng <jiangjiacheng@huawei.com>
9 * This work is licensed under the terms of the GNU GPL, version 2 or later.
10 * See the COPYING file in the top-level directory.
13 #include "qapi/error.h"
14 #include "qapi/qapi-commands-migration.h"
16 typedef struct MigrationThread MigrationThread;
18 struct MigrationThread {
19 const char *name; /* the name of migration thread */
20 int thread_id; /* ID of the underlying host thread */
21 QLIST_ENTRY(MigrationThread) node;
24 MigrationThread *migration_threads_add(const char *name, int thread_id);
25 void migration_threads_remove(MigrationThread *info);