esp_log: add note about reentrancy for custom logging function

pull/7680/head
Mahavir Jain 2021-09-14 16:57:15 +05:30
rodzic 03a89f1c39
commit ae7030ccd0
1 zmienionych plików z 3 dodań i 0 usunięć

Wyświetl plik

@ -88,6 +88,9 @@ esp_log_level_t esp_log_level_get(const char* tag);
* output to some other destination, such as file or network. Returns the original
* log handler, which may be necessary to return output to the previous destination.
*
* @note Please note that function callback here must be re-entrant as it can be
* invoked in parallel from multiple thread context.
*
* @param func new Function used for output. Must have same signature as vprintf.
*
* @return func old Function used for output.