teknoraver / rpms / systemd

Forked from rpms/systemd 2 months ago
Clone

Blame 0389-man-sd_event_new-tweaks.patch

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