[libvirt] [PATCHv2 04/14] event: share state driver between test:///default connections

Eric Blake eblake at redhat.com
Tue Jan 7 15:29:57 UTC 2014


On 01/07/2014 07:16 AM, John Ferlan wrote:
> 

>> In order to actually test asynchronous events, I wanted to be able
>> to tie multiple test connections to the same state.  Use of a file
>> in a test URI is still per-connection state, but now parallel
>> connections to test:///default (from the same binary, of course)
>> now share common state and can affect one another.
>>

>>
> 
> Continuing with the matched set theme....
> 
> Does every compiler/architecture guarantee that 'defaultConnections'
> initializes to zero?

Yes.  The C89, C99, and C11 language standards guarantee 0
initialization of all file-scope and static variables (only automatic
scope variables inside function bodies are indeterminate).

>  It's a nit, but better safe than sorry I suppose.

No problem; not everyone reads the C standard for fun :)

> 
> ACK

Thanks; pushed.

-- 
Eric Blake   eblake redhat com    +1-919-301-3266
Libvirt virtualization library http://libvirt.org

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 604 bytes
Desc: OpenPGP digital signature
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20140107/32af3594/attachment-0001.sig>


More information about the libvir-list mailing list