Changeset 40312 in vbox for trunk/src/VBox/Main/webservice
- Timestamp:
- Mar 1, 2012 1:50:28 PM (13 years ago)
- svn:sync-xref-src-repo-rev:
- 76565
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/webservice/vboxweb.cpp
r40151 r40312 51 51 #include <iprt/base64.h> 52 52 #include <iprt/stream.h> 53 #include <iprt/asm.h> 53 54 54 55 // workaround for compile problems on gcc 4.1 … … 817 818 static struct CRYPTO_dynlock_value *CRYPTO_dyn_create_function(const char * /*file*/, int /*line*/) 818 819 { 820 static uint32_t s_iCritSectDynlock = 0; 819 821 struct CRYPTO_dynlock_value *value = (struct CRYPTO_dynlock_value *)RTMemAlloc(sizeof(struct CRYPTO_dynlock_value)); 820 822 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); 822 826 823 827 return value; … … 850 854 for (int i = 0; i < num_locks; i++) 851 855 { 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); 853 859 if (RT_FAILURE(rc)) 854 860 {
Note:
See TracChangeset
for help on using the changeset viewer.