mirror of
https://github.com/ElementsProject/elements.git
synced 2026-08-20 13:37:28 +02:00
Merge pull request #6287
a794284locking: add a quick example of GUARDED_BY (Cory Fields)2b890ddlocking: fix a few small issues uncovered by -Wthread-safety (Cory Fields)cd27bbalocking: teach Clang's -Wthread-safety to cope with our scoped lock macros (Cory Fields)
This commit is contained in:
commit
d2464dfee9
5 changed files with 15 additions and 14 deletions
|
|
@ -114,7 +114,7 @@ CTranslationInterface translationInterface;
|
|||
|
||||
/** Init OpenSSL library multithreading support */
|
||||
static CCriticalSection** ppmutexOpenSSL;
|
||||
void locking_callback(int mode, int i, const char* file, int line)
|
||||
void locking_callback(int mode, int i, const char* file, int line) NO_THREAD_SAFETY_ANALYSIS
|
||||
{
|
||||
if (mode & CRYPTO_LOCK) {
|
||||
ENTER_CRITICAL_SECTION(*ppmutexOpenSSL[i]);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue