|
77 | 77 | <refsect1> |
78 | 78 | <title>Thread safety</title> |
79 | 79 |
|
80 | | - <para>Functions that operate on the <structname>sd_journal</structname> object are thread |
81 | | - agnostic — given <structname>sd_journal</structname> pointer may only be used from one thread at |
82 | | - a time, but multiple threads may use multiple such objects safely. Other functions — |
83 | | - those that are used to send entries to the journal, like |
84 | | - <citerefentry><refentrytitle>sd_journal_print</refentrytitle><manvolnum>3</manvolnum></citerefentry> |
85 | | - and similar, or those that are used to retrieve global information like |
86 | | - <citerefentry><refentrytitle>sd_journal_stream_fd</refentrytitle><manvolnum>3</manvolnum></citerefentry> |
87 | | - and |
| 80 | + <para>Functions that operate on <structname>sd_journal</structname> objects are thread agnostic — given |
| 81 | + <structname>sd_journal</structname> pointer may only be used from one specific thread at all times (and it has to |
| 82 | + be the very same one during the entire lifetime of the object), but multiple, independent threads may use multiple, |
| 83 | + independent objects safely. Other functions — those that are used to send entries to the journal, like |
| 84 | + <citerefentry><refentrytitle>sd_journal_print</refentrytitle><manvolnum>3</manvolnum></citerefentry> and similar, |
| 85 | + or those that are used to retrieve global information like |
| 86 | + <citerefentry><refentrytitle>sd_journal_stream_fd</refentrytitle><manvolnum>3</manvolnum></citerefentry> and |
88 | 87 | <citerefentry><refentrytitle>sd_journal_get_catalog_for_message_id</refentrytitle><manvolnum>3</manvolnum></citerefentry> |
89 | | - — are thread-safe and may be called from multiple threads in parallel.</para> |
| 88 | + — are fully thread-safe and may be called from multiple threads in parallel.</para> |
90 | 89 | </refsect1> |
91 | 90 |
|
92 | 91 | <xi:include href="libsystemd-pkgconfig.xml" /> |
|
0 commit comments