VirtualBox

Changeset 40312 in vbox for trunk/src/VBox/Main/webservice


Ignore:
Timestamp:
Mar 1, 2012 1:50:28 PM (13 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
76565
Message:

Main/webservice: disable lock validation for the openssl locks

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/webservice/vboxweb.cpp

    r40151 r40312  
    5151#include <iprt/base64.h>
    5252#include <iprt/stream.h>
     53#include <iprt/asm.h>
    5354
    5455// workaround for compile problems on gcc 4.1
     
    817818static struct CRYPTO_dynlock_value *CRYPTO_dyn_create_function(const char * /*file*/, int /*line*/)
    818819{
     820    static uint32_t s_iCritSectDynlock = 0;
    819821    struct CRYPTO_dynlock_value *value = (struct CRYPTO_dynlock_value *)RTMemAlloc(sizeof(struct CRYPTO_dynlock_value));
    820822    if (value)
    821         RTCritSectInit(&value->mutex);
     823        RTCritSectInitEx(&value->mutex, RTCRITSECT_FLAGS_NO_LOCK_VAL,
     824                         NIL_RTLOCKVALCLASS, RTLOCKVAL_SUB_CLASS_NONE,
     825                         "openssl-dyn-%u", ASMAtomicIncU32(&s_iCritSectDynlock) - 1);
    822826
    823827    return value;
     
    850854    for (int i = 0; i < num_locks; i++)
    851855    {
    852         int rc = RTCritSectInit(&g_pSSLMutexes[i]);
     856        int rc = RTCritSectInitEx(&g_pSSLMutexes[i], RTCRITSECT_FLAGS_NO_LOCK_VAL,
     857                                  NIL_RTLOCKVALCLASS, RTLOCKVAL_SUB_CLASS_NONE,
     858                                  "openssl-%d", i);
    853859        if (RT_FAILURE(rc))
    854860        {
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette