logging: Logger to wake up logs processing thread
Added configurable threshold of number of buffered log messages on which log wakes up thread which processes buffered logs. Thread ID is provided during logger initialization. Feature is optional and can be disabled by setting CONFIG_LOG_PROCESS_TRIGGER_THR to 0. Signed-off-by: Krzysztof Chruscinski <krzysztof.chruscinski@nordicsemi.no>
This commit is contained in:
parent
8b8198b58f
commit
1ba542c352
3 changed files with 47 additions and 1 deletions
|
@ -42,6 +42,15 @@ void log_core_init(void);
|
|||
*/
|
||||
void log_init(void);
|
||||
|
||||
/**
|
||||
* @brief Function for providing thread which is processing logs.
|
||||
*
|
||||
* See CONFIG_LOG_PROCESS_TRIGGER_THRESHOLD.
|
||||
*
|
||||
* @param process_tid Process thread id. Used to wake up the thread
|
||||
*/
|
||||
void log_thread_set(k_tid_t process_tid);
|
||||
|
||||
/**
|
||||
* @brief Function for providing timestamp function.
|
||||
*
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue