On 07/11/2012 07:35 AM, Daniel P. Berrange wrote:
> From: "Daniel P. Berrange" <[email protected]>
> 
> Using virOnce for global initialization is desirable since it
> ensures that initialization will always take place when it is
> needed, and guarantees it only occurs once. The problem is that
> the code to setup a global initializer with proper error
> propagation is tedious. This introduces VIR_ONCE_GLOBAL_INIT
> macro to simplify this.
> 
> Signed-off-by: Daniel P. Berrange <[email protected]>
> ---
>  src/util/threads.h |   49 +++++++++++++++++++++++++++++++++++++++++++++++++
>  1 file changed, 49 insertions(+)

Nice.  No difference until later patches use it, but:

ACK.

-- 
Eric Blake   [email protected]    +1-919-301-3266
Libvirt virtualization library http://libvirt.org

Attachment: signature.asc
Description: OpenPGP digital signature

--
libvir-list mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/libvir-list

Reply via email to