Skip to content

Commit

Permalink
docs: clarify thread safety of immutable objects
Browse files Browse the repository at this point in the history
  • Loading branch information
cdan-youdo committed Mar 4, 2025
1 parent 34dfbbc commit 002127b
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions docs/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,16 @@ See :doc:`Installation <installation>` for more information.
.. _cryptography-layout:


Thread Safety
-------------

All immutable objects in ``cryptography`` are safe to use in multithreaded
environments. This means they can be shared across threads without requiring
additional synchronization. Mutable objects, such as hash contexts, can also be
shared, but concurrent modification may lead to undefined behavior or
exceptions. When working with cryptographic operations in a multithreaded
application, ensure that any mutable objects are used in a thread-safe manner.

Layout
------

Expand Down

0 comments on commit 002127b

Please sign in to comment.