X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=elogind.git;a=blobdiff_plain;f=man%2Fsd_event_new.xml;h=f2ad782716fdade0fd48fc92076892311e226a49;hp=35e58ea755e480cb8a9b1dabad4850a3f0c04794;hb=92ff080be100aff15f292e2631921131c610afe7;hpb=b8bde11658366290521e3d03316378b482600323 diff --git a/man/sd_event_new.xml b/man/sd_event_new.xml index 35e58ea75..f2ad78271 100644 --- a/man/sd_event_new.xml +++ b/man/sd_event_new.xml @@ -1,4 +1,4 @@ - + @@ -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. @@ -138,13 +138,13 @@ along with systemd; If not, see . - -ENOMEM + -ENOMEM - Not enough memory to allocate object + Not enough memory to allocate the object. - -EMFILE + -EMFILE The maximum number of event loops has been allocated. @@ -158,7 +158,7 @@ along with systemd; If not, see . sd_event_new() and the other functions described here are available as a shared library, which can be compiled and linked to with the - libsystemd pkg-config1 + libsystemd pkg-config1 file.