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:
@@ -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]);
|
||||
|
||||
Reference in New Issue
Block a user