22 #ifndef MBEDTLS_THREADING_H
23 #define MBEDTLS_THREADING_H
35 #define MBEDTLS_ERR_THREADING_BAD_INPUT_DATA -0x001C
37 #define MBEDTLS_ERR_THREADING_MUTEX_ERROR -0x001E
39 #if defined(MBEDTLS_THREADING_PTHREAD)
51 #if defined(MBEDTLS_THREADING_ALT)
53 #include "threading_alt.h"
84 #if defined(MBEDTLS_THREADING_C)
98 #if defined(MBEDTLS_FS_IO)
102 #if defined(MBEDTLS_HAVE_TIME_DATE) && !defined(MBEDTLS_PLATFORM_GMTIME_R_ALT)
mbedtls_threading_mutex_t mbedtls_threading_readdir_mutex
void mbedtls_threading_free_alt(void)
Free global mutexes.
#define MBEDTLS_PRIVATE(member)
mbedtls_threading_mutex_t mbedtls_threading_gmtime_mutex
struct mbedtls_threading_mutex_t mbedtls_threading_mutex_t
int(* mbedtls_mutex_unlock)(mbedtls_threading_mutex_t *mutex)
void mbedtls_threading_set_alt(void(*mutex_init)(mbedtls_threading_mutex_t *), void(*mutex_free)(mbedtls_threading_mutex_t *), int(*mutex_lock)(mbedtls_threading_mutex_t *), int(*mutex_unlock)(mbedtls_threading_mutex_t *))
Set your alternate threading implementation function pointers and initialize global mutexes...
Macro wrapper for struct's memebrs.
Build-time configuration info.
void(* mbedtls_mutex_free)(mbedtls_threading_mutex_t *mutex)
void(* mbedtls_mutex_init)(mbedtls_threading_mutex_t *mutex)
int(* mbedtls_mutex_lock)(mbedtls_threading_mutex_t *mutex)