Re: [Qemu-devel] [PATCH 3/4] docs: document use of automatic cleanup functions in glib

2019-08-28 Thread Alex Bennée
Daniel P. Berrangé writes: > On Wed, Aug 28, 2019 at 04:14:00PM +0100, Alex Bennée wrote: >> > +The cleanup functions are not restricted to simply free'ing memory. The >> > +GMutexLocker class is a variant of GMutex that has automatic locking and >> > +unlocking at start and end of the enclosin

Re: [Qemu-devel] [PATCH 3/4] docs: document use of automatic cleanup functions in glib

2019-08-28 Thread Daniel P . Berrangé
On Wed, Aug 28, 2019 at 04:14:00PM +0100, Alex Bennée wrote: > > +The cleanup functions are not restricted to simply free'ing memory. The > > +GMutexLocker class is a variant of GMutex that has automatic locking and > > +unlocking at start and end of the enclosing scope > > + > > +In the following

Re: [Qemu-devel] [PATCH 3/4] docs: document use of automatic cleanup functions in glib

2019-08-28 Thread Alex Bennée
Daniel P. Berrangé writes: > Document the use of g_autofree and g_autoptr in glib for automatic > freeing of memory, or other resource cleanup (eg mutex unlocking). > > Signed-off-by: Daniel P. Berrangé > --- > CODING_STYLE.md | 101 > 1 file c

Re: [Qemu-devel] [PATCH 3/4] docs: document use of automatic cleanup functions in glib

2019-08-28 Thread Stefan Hajnoczi
On Fri, Aug 23, 2019 at 05:39:30PM +0100, Daniel P. Berrangé wrote: > Document the use of g_autofree and g_autoptr in glib for automatic > freeing of memory, or other resource cleanup (eg mutex unlocking). > > Signed-off-by: Daniel P. Berrangé > --- > CODING_STYLE.md | 101 ++

Re: [Qemu-devel] [PATCH 3/4] docs: document use of automatic cleanup functions in glib

2019-08-23 Thread Eric Blake
On 8/23/19 11:39 AM, Daniel P. Berrangé wrote: > Document the use of g_autofree and g_autoptr in glib for automatic > freeing of memory, or other resource cleanup (eg mutex unlocking). > > Signed-off-by: Daniel P. Berrangé > --- > CODING_STYLE.md | 101 +++

[Qemu-devel] [PATCH 3/4] docs: document use of automatic cleanup functions in glib

2019-08-23 Thread Daniel P . Berrangé
Document the use of g_autofree and g_autoptr in glib for automatic freeing of memory, or other resource cleanup (eg mutex unlocking). Signed-off-by: Daniel P. Berrangé --- CODING_STYLE.md | 101 1 file changed, 101 insertions(+) diff --git a/CODI