mirror of
https://github.com/Ai-Thinker-Open/Ai-Thinker-Open_RTL8710BX_ALIOS_SDK.git
synced 2026-07-14 22:15:38 +00:00
rel_1.6.0 init
This commit is contained in:
commit
27b3e2883d
19359 changed files with 8093121 additions and 0 deletions
30
Living_SDK/utility/mbedtls/aos/include/threading_alt.h
Normal file
30
Living_SDK/utility/mbedtls/aos/include/threading_alt.h
Normal file
|
|
@ -0,0 +1,30 @@
|
|||
/*
|
||||
* Copyright (C) 2018 Alibaba Group Holding Limited
|
||||
*/
|
||||
|
||||
#ifndef MBEDTLS_THREADING_ALT_H
|
||||
#define MBEDTLS_THREADING_ALT_H
|
||||
|
||||
#include <stdlib.h>
|
||||
#include <aos/kernel.h>
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
typedef struct
|
||||
{
|
||||
aos_mutex_t mutex;
|
||||
char is_valid;
|
||||
} mbedtls_threading_mutex_t;
|
||||
|
||||
void threading_mutex_init( mbedtls_threading_mutex_t *mutex );
|
||||
void threading_mutex_free( mbedtls_threading_mutex_t *mutex );
|
||||
int threading_mutex_lock( mbedtls_threading_mutex_t *mutex );
|
||||
int threading_mutex_unlock( mbedtls_threading_mutex_t *mutex );
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif /* MBEDTLS_THREADING_ALT_H */
|
||||
Loading…
Add table
Add a link
Reference in a new issue