doc: Rename "Portability" to "Thread-safety"

Fixes #545
This commit is contained in:
Petri Lehtinen 2020-11-19 17:26:06 +02:00
parent 9a0fc069bf
commit 55ea6d44dd
3 changed files with 6 additions and 10 deletions

View File

@ -933,8 +933,7 @@ inserted to the object.
:func:`json_object()`, either explicit or implicit. If this :func:`json_object()`, either explicit or implicit. If this
function is not called by the user, the first call to function is not called by the user, the first call to
:func:`json_object()` (either explicit or implicit) seeds the hash :func:`json_object()` (either explicit or implicit) seeds the hash
function. See :ref:`portability-thread-safety` for notes on thread function. See :ref:`thread-safety` for notes on thread safety.
safety.
If repeatable results are required, for e.g. unit tests, the hash If repeatable results are required, for e.g. unit tests, the hash
function can be "unrandomized" by calling :func:`json_object_seed` function can be "unrandomized" by calling :func:`json_object_seed`

View File

@ -41,7 +41,7 @@ Contents
upgrading upgrading
tutorial tutorial
conformance conformance
portability threadsafety
apiref apiref
changes changes

View File

@ -1,11 +1,8 @@
*********** *************
Portability
***********
.. _portability-thread-safety:
Thread safety Thread safety
------------- *************
.. _thread-safety:
Jansson as a library is thread safe and has no mutable global state. Jansson as a library is thread safe and has no mutable global state.
The only exceptions are the hash function seed and memory allocation The only exceptions are the hash function seed and memory allocation