| 1 |
<?xml version="1.0"?> |
| 2 |
<!DOCTYPE refsect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN" |
| 3 |
"http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd"> |
| 4 |
<!-- SPDX-License-Identifier: LGPL-2.1-or-later --> |
| 5 |
|
| 6 |
<refsect1> |
| 7 |
<title/> |
| 8 |
|
| 9 |
<para id="strict">All functions listed here are thread-agnostic and only a single thread may operate on a |
| 10 |
given object at any given time. Different threads may access the same object at different times. Multiple |
| 11 |
independent objects may be used from different threads in parallel.</para> |
| 12 |
|
| 13 |
<para id="safe">All functions listed here are thread-safe and may be called in parallel from multiple threads.</para> |
| 14 |
|
| 15 |
<para id='getenv'>The code described here uses |
| 16 |
<citerefentry project='man-pages'><refentrytitle>getenv</refentrytitle><manvolnum>3</manvolnum></citerefentry>, |
| 17 |
which is declared to be not multi-thread-safe. This means that the code calling the functions described |
| 18 |
here must not call |
| 19 |
<citerefentry project='man-pages'><refentrytitle>setenv</refentrytitle><manvolnum>3</manvolnum></citerefentry> |
| 20 |
from a parallel thread. It is recommended to only do calls to <function>setenv()</function> |
| 21 |
from an early phase of the program when no other threads have been started.</para> |
| 22 |
|
| 23 |
</refsect1> |