set_sodium_misuse and threading #1205
Answered
by
jedisct1
MichalPetryka
asked this question in
Q&A
-
Is the set_sodium_misuse handler guaranteed to be called on the same thread that called a sodium function? I'd like to store info about what method fired it in TLS for logging purposes, which requires this guarantee. |
Beta Was this translation helpful? Give feedback.
Answered by
jedisct1
Aug 14, 2022
Replies: 1 comment
-
Yes, it will already be called from the same thread. But that handler should never be called, unless something really goes wrong. |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
MichalPetryka
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Yes, it will already be called from the same thread.
But that handler should never be called, unless something really goes wrong.