On Fri, May 22, 2015 at 00:42:35 +0200, Jiri Denemark wrote:
So that any code can call virThreadQueueRegister whenever it needs
to
wait for some event. The thread condition will be automatically
invalidated (and thus ignored by virThreadQueue{Signal,Broadcast})
whenever its thread exits to avoid deadlocks or crashes.
Signed-off-by: Jiri Denemark <jdenemar(a)redhat.com>
---
src/util/virthread.c | 21 +++++++++++++++++----
1 file changed, 17 insertions(+), 4 deletions(-)
ACK,
Peter