[libvirt] [PATCH 02/10] thread: Create thread local condition for every thread

Peter Krempa pkrempa at redhat.com
Fri May 22 11:58:30 UTC 2015


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 at redhat.com>
> ---
>  src/util/virthread.c | 21 +++++++++++++++++----
>  1 file changed, 17 insertions(+), 4 deletions(-)
> 

ACK,

Peter
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: Digital signature
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20150522/d3e321e8/attachment-0001.sig>


More information about the libvir-list mailing list