Skip to content

Commit 1f57011

Browse files
committed
bsdkm: use mtx_lock_spin, mtx_unlock_spin.
1 parent bd7977a commit 1f57011

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

bsdkm/bsdkm_wc_port.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -93,13 +93,13 @@ extern struct malloc_type M_WOLFSSL[1];
9393

9494
static __always_inline int wc_LockMutex(wolfSSL_Mutex *m)
9595
{
96-
mtx_lock(&m->lock);
96+
mtx_lock_spin(&m->lock);
9797
return 0;
9898
}
9999

100100
static __always_inline int wc_UnLockMutex(wolfSSL_Mutex* m)
101101
{
102-
mtx_unlock(&m->lock);
102+
mtx_unlock_spin(&m->lock);
103103
return 0;
104104
}
105105
#endif /* !SINGLE_THREADED */

0 commit comments

Comments
 (0)