Home
last modified time | relevance | path

Searched refs:g_randomLock (Results 1 – 3 of 3) sorted by relevance

/ohos5.0/foundation/communication/dsoftbus/components/nstackx/nstackx_util/core/
H A Dnstackx_mbedtls.c24 static pthread_mutex_t g_randomLock = PTHREAD_MUTEX_INITIALIZER; variable
65 if (pthread_mutex_lock(&g_randomLock) != 0) { in GetRandBytes()
71 if (pthread_mutex_unlock(&g_randomLock) != 0) { in GetRandBytes()
83 if (pthread_mutex_unlock(&g_randomLock) != 0) { in GetRandBytes()
/ohos5.0/foundation/communication/dsoftbus/adapter/common/mbedtls/
H A Dsoftbus_adapter_crypto.c63 static SoftBusMutex g_randomLock; variable
231 if (SoftBusMutexInit(&g_randomLock, NULL) != SOFTBUS_OK) { in SoftBusGenerateRandomArray()
239 SoftBusMutexUnlock(&g_randomLock); in SoftBusGenerateRandomArray()
246 if (SoftBusMutexLock(&g_randomLock) != SOFTBUS_OK) { in SoftBusGenerateRandomArray()
252 SoftBusMutexUnlock(&g_randomLock); in SoftBusGenerateRandomArray()
/ohos5.0/foundation/communication/dsoftbus/adapter/common/openssl/
H A Dsoftbus_adapter_crypto.c28 static SoftBusMutex g_randomLock; variable
361 if (SoftBusMutexInit(&g_randomLock, NULL) != SOFTBUS_OK) { in SoftBusGenerateRandomArray()
366 if (SoftBusMutexLock(&g_randomLock) != SOFTBUS_OK) { in SoftBusGenerateRandomArray()
376 SoftBusMutexUnlock(&g_randomLock); in SoftBusGenerateRandomArray()