Skip to content

Commit

Permalink
Merge pull request wolfSSL#7509 from miyazakh/user_threading
Browse files Browse the repository at this point in the history
Add user threading macro definition
  • Loading branch information
dgarske authored and jefferyq2 committed Jun 9, 2024
1 parent 45585ae commit 75754fc
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions wolfssl/wolfcrypt/types.h
Original file line number Diff line number Diff line change
Expand Up @@ -1400,6 +1400,20 @@ typedef struct w64wrapper {
#endif
typedef void* THREAD_TYPE;
#define WOLFSSL_THREAD
#elif defined(WOLFSSL_USER_THREADING)
/* User can define user specific threading types
* THREAD_RETURN
* TREAD_TYPE
* WOLFSSL_THREAD
* e.g.
* typedef unsigned int THREAD_RETURN;
* typedef size_t THREAD_TYPE;
* #define WOLFSSL_THREAD void
*
* User can also implement their own wolfSSL_NewThread(),
* wolfSSL_JoinThread() and wolfSSL_Cond signaling if they want.
* Otherwise, those functions are omitted.
*/
#elif defined(WOLFSSL_MDK_ARM) || defined(WOLFSSL_KEIL_TCP_NET) || \
defined(FREESCALE_MQX)
typedef unsigned int THREAD_RETURN;
Expand Down

0 comments on commit 75754fc

Please sign in to comment.