mdbx: avoid 32-bit Bionic/Android hang within pthread_mutex_lock().

This commit is contained in:
Леонид Юрьев (Leonid Yuriev)
2022-04-21 15:41:25 +03:00
parent 51d66494fd
commit a2aa6667e1
4 changed files with 41 additions and 5 deletions

View File

@@ -437,7 +437,7 @@ MDBX_INTERNAL_FUNC int mdbx_condpair_lock(mdbx_condpair_t *condpair) {
DWORD code = WaitForSingleObject(condpair->mutex, INFINITE);
return waitstatus2errcode(code);
#else
return pthread_mutex_lock(&condpair->mutex);
return mdbx_pthread_mutex_lock(&condpair->mutex);
#endif
}
@@ -507,7 +507,7 @@ MDBX_INTERNAL_FUNC int mdbx_fastmutex_acquire(mdbx_fastmutex_t *fastmutex) {
}
return MDBX_SUCCESS;
#else
return pthread_mutex_lock(fastmutex);
return mdbx_pthread_mutex_lock(fastmutex);
#endif
}