migration: terminate_* can be called for other threads
commit667707078d8d365d449d1908805c09506f67825f
authorJuan Quintela <quintela@redhat.com>
Mon, 19 Feb 2018 18:01:45 +0000 (19 19:01 +0100)
committerJuan Quintela <quintela@redhat.com>
Tue, 15 May 2018 18:24:27 +0000 (15 20:24 +0200)
tree4b46c4b746748949f241a49cb5aa10b51516574c
parent71bb07dbfcd465236738ee4b1cde6b80989e94bf
migration: terminate_* can be called for other threads

Once there, make  count field to always be accessed with atomic
operations.  To make blocking operations, we need to know that the
thread is running, so create a bool to indicate that.

Signed-off-by: Juan Quintela <quintela@redhat.com>
Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
--

Once here, s/terminate_multifd_*-threads/multifd_*_terminate_threads/
This is consistente with every other function
migration/ram.c