mirror of
https://github.com/espressif/esp-idf.git
synced 2026-10-02 11:10:54 +03:00
fix(mbedtls): make threading implementation exclusive
Ensure the pthread and alternate threading implementations cannot be enabled at the same time.
This commit is contained in:
+14
-11
@@ -37,19 +37,22 @@ menu "mbedTLS"
|
|||||||
If you do intend to use contexts between threads, you will need to enable
|
If you do intend to use contexts between threads, you will need to enable
|
||||||
this layer to prevent race conditions.
|
this layer to prevent race conditions.
|
||||||
|
|
||||||
config MBEDTLS_THREADING_ALT
|
choice MBEDTLS_THREADING_IMPLEMENTATION
|
||||||
bool "Enable threading alternate implementation"
|
prompt "Threading implementation"
|
||||||
depends on MBEDTLS_THREADING_C
|
depends on MBEDTLS_THREADING_C
|
||||||
default n
|
default MBEDTLS_THREADING_PTHREAD
|
||||||
help
|
|
||||||
Enable threading alt to allow your own alternate threading implementation.
|
|
||||||
|
|
||||||
config MBEDTLS_THREADING_PTHREAD
|
config MBEDTLS_THREADING_ALT
|
||||||
bool "Enable threading pthread implementation"
|
bool "Enable threading alternate implementation"
|
||||||
depends on MBEDTLS_THREADING_C
|
help
|
||||||
default y
|
Enable threading alt to allow your own alternate threading implementation.
|
||||||
help
|
|
||||||
Enable the pthread wrapper layer for the threading layer.
|
config MBEDTLS_THREADING_PTHREAD
|
||||||
|
bool "Enable threading pthread implementation"
|
||||||
|
help
|
||||||
|
Enable the pthread wrapper layer for the threading layer.
|
||||||
|
|
||||||
|
endchoice
|
||||||
|
|
||||||
config MBEDTLS_ERROR_STRINGS
|
config MBEDTLS_ERROR_STRINGS
|
||||||
bool "Enable error code to error string conversion"
|
bool "Enable error code to error string conversion"
|
||||||
|
|||||||
Reference in New Issue
Block a user