From bfe6c07e1b6bd8bf63d662c60fb333a003bb97a1 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Zbigniew=20J=C4=99drzejewski-Szmek?= Date: Thu, 25 Sep 2014 17:27:17 -0400 Subject: [PATCH] man/sd_event_new: tweaks --- man/sd_event_new.xml | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/man/sd_event_new.xml b/man/sd_event_new.xml index bd495b63b..3062f43e6 100644 --- a/man/sd_event_new.xml +++ b/man/sd_event_new.xml @@ -86,7 +86,7 @@ along with systemd; If not, see . event parameter. After use, drop the returned reference with sd_event_unref(). When the last reference is - dropped, the event loop is freed. + dropped, the object is freed. sd_event_default() acquires a reference to the default event loop object of the calling thread, possibly @@ -100,23 +100,23 @@ along with systemd; If not, see . recommended to use this call instead of sd_event_new() in order to share event loop objects between various components that are dispatched in the same - thread. All threads either have exactly zero or one default event loop - associated, but never more. + thread. All threads have exactly either zero or one default event loop + objects associated, but never more. sd_event_ref() increases the reference - counter of the specified event loop object by one. + count of the specified event loop object by one. sd_event_unref() decreases the - reference counter of the specified event loop object by one. If - the counter hits zero, the event loop object is freed. Note that it + reference count of the specified event loop object by one. If + the count hits zero, the object is freed. Note that it is freed regardless of whether it is the default event loop object for a thread or not. This means that allocating an event loop with sd_event_default(), then releasing it, and then acquiring a new one with sd_event_default() will result in two - distinct objects. Note that, in order to free an event loop object, + distinct objects. Note that in order to free an event loop object, all remaining event sources of the event loop also need to be - freed as they each keep a reference to it. + freed as each keeps a reference to it. @@ -128,7 +128,7 @@ along with systemd; If not, see . code. sd_event_ref() always returns a pointer to the event loop object passed in. sd_event_unref() always returns - NULL. + NULL. @@ -140,7 +140,7 @@ along with systemd; If not, see . -ENOMEM - Not enough memory to allocate object + Not enough memory to allocate the object. -- 2.30.2