1
0
mirror of https://github.com/ARMmbed/mbedtls.git synced 2025-05-09 16:41:19 +08:00

Update docs/architecture/psa-thread-safety/psa-thread-safety.md

Co-authored-by: Paul Elliott <62069445+paul-elliott-arm@users.noreply.github.com>
Signed-off-by: Ryan Everett <ryan.everett@arm.com>
This commit is contained in:
Ryan Everett 2024-03-18 10:20:43 +00:00 committed by GitHub
parent f266b51e3f
commit 765b75f2f8
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -147,6 +147,8 @@ There are two `psa_global_data_t` structs, each with a single instance `global_d
A deadlock would occur if a thread attempts to lock a mutex while already holding it. Functions which need to be called while holding the global mutex have documentation to say this.
To avoid performance degradation, functions must hold mutexes for as short a time as possible. In particular, they must not start expensive operations (eg. doing cryptography) while holding the mutex.
#### Key slots