Skip to content

Commit

Permalink
add user threading macro definition
Browse files Browse the repository at this point in the history
  • Loading branch information
miyazakh committed May 7, 2024
1 parent 2496cc0 commit 95e9806
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 aslo implement user own wolfSSL_NewThread(),
* wolfSSL_JoinThread() and CND(s) if 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 95e9806

Please sign in to comment.