mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2025-07-30 02:37:28 +02:00
Use the correct mutex type for embOS
OS_MUTEX_Lock() is acutally a non-blocking mutex lock, for wc_LockMutex() we need a blocking mutex. Switch to this.
This commit is contained in:
@ -2270,7 +2270,7 @@ int wolfSSL_CryptHwMutexUnLock(void)
|
|||||||
|
|
||||||
int wc_LockMutex(wolfSSL_Mutex* m)
|
int wc_LockMutex(wolfSSL_Mutex* m)
|
||||||
{
|
{
|
||||||
OS_MUTEX_Lock((OS_MUTEX*) m);
|
OS_MUTEX_LockBlocked((OS_MUTEX*) m);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user