Skip to content

Commit 95e9806

Browse files
committed
add user threading macro definition
1 parent 2496cc0 commit 95e9806

1 file changed

Lines changed: 14 additions & 0 deletions

File tree

wolfssl/wolfcrypt/types.h

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1400,6 +1400,20 @@ typedef struct w64wrapper {
14001400
#endif
14011401
typedef void* THREAD_TYPE;
14021402
#define WOLFSSL_THREAD
1403+
#elif defined(WOLFSSL_USER_THREADING)
1404+
/* User can define user specific threading types
1405+
* THREAD_RETURN
1406+
* TREAD_TYPE
1407+
* WOLFSSL_THREAD
1408+
* e.g.
1409+
* typedef unsigned int THREAD_RETURN;
1410+
* typedef size_t THREAD_TYPE;
1411+
* #define WOLFSSL_THREAD void
1412+
*
1413+
* User can aslo implement user own wolfSSL_NewThread(),
1414+
* wolfSSL_JoinThread() and CND(s) if want.
1415+
* Otherwise, those functions are omitted.
1416+
*/
14031417
#elif defined(WOLFSSL_MDK_ARM) || defined(WOLFSSL_KEIL_TCP_NET) || \
14041418
defined(FREESCALE_MQX)
14051419
typedef unsigned int THREAD_RETURN;

0 commit comments

Comments
 (0)