Skip to content

Commit

Permalink
Merge pull request wolfSSL#7073 from julek-wolfssl/move-mutex-init
Browse files Browse the repository at this point in the history
Move the mutex initializer into the appropriate existing section
  • Loading branch information
douzzer authored Dec 15, 2023
2 parents 62b3ca5 + 57355f3 commit 8f2a48c
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions wolfssl/wolfcrypt/wc_port.h
Original file line number Diff line number Diff line change
Expand Up @@ -243,6 +243,7 @@
typedef pthread_rwlock_t wolfSSL_RwLock;
#endif
typedef pthread_mutex_t wolfSSL_Mutex;
#define WOLFSSL_MUTEX_INITIALIZER PTHREAD_MUTEX_INITIALIZER
#elif defined(THREADX)
typedef TX_MUTEX wolfSSL_Mutex;
#elif defined(WOLFSSL_DEOS)
Expand Down Expand Up @@ -307,9 +308,6 @@
#if !defined(WOLFSSL_USE_RWLOCK) || defined(SINGLE_THREADED)
typedef wolfSSL_Mutex wolfSSL_RwLock;
#endif
#ifdef WOLFSSL_PTHREADS
#define WOLFSSL_MUTEX_INITIALIZER PTHREAD_MUTEX_INITIALIZER
#endif

#ifndef WOLFSSL_NO_ATOMICS
#ifdef HAVE_C___ATOMIC
Expand Down

0 comments on commit 8f2a48c

Please sign in to comment.