From db669dda273b31215a6b002fd7c753f394649369 Mon Sep 17 00:00:00 2001 From: Vo Trung Chi Date: Tue, 1 Oct 2019 15:22:56 +0700 Subject: libdlt: reattachment and improvement in dlt thread (#171) Improvement: housekeeper thread with poll - Change name receiver thread to housekeeper thread - Use poll() in housekeeper thread to get new received message from DLT Daemon. - Remove resend buffer inside of dlt_user_log_reattach_to_daemon() - Only try to resend buffer if fd is valid. This commit removes the event driven dlt_user_log_reattach_to_daemon() that is called e.g. by DLT_LOG. Now, only the DLT housekeeper thread handles the retrial to attach to daemon. Signed-off-by: Vo Trung Chi Signed-off-by: Saya Sugiura Signed-off-by: Simon Herkenhoff Signed-off-by: Bui Nguyen Quoc Thanh --- doc/dlt_design_specification.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'doc') diff --git a/doc/dlt_design_specification.txt b/doc/dlt_design_specification.txt index d39a100..02f1120 100644 --- a/doc/dlt_design_specification.txt +++ b/doc/dlt_design_specification.txt @@ -173,7 +173,7 @@ During unregister of application, the following things occur: ==== Handling of messages received from DLT daemon -During receiver thread within the DLT user library checks for newly received messages from the DLT daemon, and handles them in the following way: +During housekeeper thread within the DLT user library checks for newly received messages from the DLT daemon, and handles them in the following way: * DLT_USER_MESSAGE_LOG_LEVEL ** Store received log level and trace status for the received context to the context array -- cgit v1.2.1