Wrapper function to wait on condition for the main loop mutex
authorAravinda Prasad <arawinda.p@gmail.com>
Thu, 30 Jan 2020 18:44:17 +0000 (00:14 +0530)
committerDavid Gibson <david@gibson.dropbear.id.au>
Mon, 3 Feb 2020 00:33:10 +0000 (11:33 +1100)
commit19e067e032232b098a999dab15c6f0c8039114bd
treed70cec5a604d36139a22ecc7638fc438f5dc312d
parent254581039e9fd5e72e4ecbbcd881f8c85c164031
Wrapper function to wait on condition for the main loop mutex

Introduce a wrapper function to wait on condition for
the main loop mutex. This function atomically releases
the main loop mutex and causes the calling thread to
block on the condition. This wrapper is required because
qemu_global_mutex is a static variable.

Signed-off-by: Aravinda Prasad <arawinda.p@gmail.com>
Signed-off-by: Ganesh Goudar <ganeshgr@linux.ibm.com>
Reviewed-by: David Gibson <david@gibson.dropbear.id.au>
Reviewed-by: Greg Kurz <groug@kaod.org>
Message-Id: <20200130184423.20519-2-ganeshgr@linux.ibm.com>
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
cpus.c
include/qemu/main-loop.h