Skip to content

Commit

Permalink
doc: Rename "Portability" to "Thread-safety"
Browse files Browse the repository at this point in the history
Fixes #545
  • Loading branch information
akheron committed Nov 19, 2020
1 parent 9a0fc06 commit 55ea6d4
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 10 deletions.
3 changes: 1 addition & 2 deletions doc/apiref.rst
Original file line number Diff line number Diff line change
Expand Up @@ -933,8 +933,7 @@ inserted to the object.
:func:`json_object()`, either explicit or implicit. If this
function is not called by the user, the first call to
:func:`json_object()` (either explicit or implicit) seeds the hash
function. See :ref:`portability-thread-safety` for notes on thread
safety.
function. See :ref:`thread-safety` for notes on thread safety.

If repeatable results are required, for e.g. unit tests, the hash
function can be "unrandomized" by calling :func:`json_object_seed`
Expand Down
2 changes: 1 addition & 1 deletion doc/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ Contents
upgrading
tutorial
conformance
portability
threadsafety
apiref
changes

Expand Down
11 changes: 4 additions & 7 deletions doc/portability.rst → doc/threadsafety.rst
Original file line number Diff line number Diff line change
@@ -1,11 +1,8 @@
***********
Portability
***********

.. _portability-thread-safety:

*************
Thread safety
-------------
*************

.. _thread-safety:

Jansson as a library is thread safe and has no mutable global state.
The only exceptions are the hash function seed and memory allocation
Expand Down

0 comments on commit 55ea6d4

Please sign in to comment.