[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

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



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

Attachment: signature.asc
Description: OpenPGP digital signature


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]