소스 검색

Merge branch 'docs/esp_log_custom_cb_note' into 'master'

esp_log: add note about reentrancy for custom logging function

See merge request espressif/esp-idf!15194
Mahavir Jain 4 년 전
부모
커밋
62078befb4
1개의 변경된 파일3개의 추가작업 그리고 0개의 파일을 삭제
  1. 3 0
      components/log/include/esp_log.h

+ 3 - 0
components/log/include/esp_log.h

@@ -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.