migration: protect the quit flag by lock
commit90e56fb46d0a7add88ed463efa4e723a6238f692
authorLiang Li <liang.z.li@intel.com>
Thu, 5 May 2016 07:32:56 +0000 (5 15:32 +0800)
committerAmit Shah <amit.shah@redhat.com>
Fri, 17 Jun 2016 12:54:23 +0000 (17 18:24 +0530)
tree2847f4f935b826e35b446c5523dedfb25895d2b8
parentfc50438ed0b7106542048d70686ee4b1c340ea49
migration: protect the quit flag by lock

quit_comp_thread and quit_decomp_thread are accessed by several
thread, it's better to protect them with locks. We use a per
thread flag to replace the global one, and the new flag is protected
by a lock.

Signed-off-by: Liang Li <liang.z.li@intel.com>
Message-Id: <1462433579-13691-7-git-send-email-liang.z.li@intel.com>
Signed-off-by: Amit Shah <amit.shah@redhat.com>
migration/ram.c