diff options
author | Vo Trung Chi <chi.votrung@vn.bosch.com> | 2019-10-01 15:22:56 +0700 |
---|---|---|
committer | Saya Sugiura <39760799+ssugiura@users.noreply.github.com> | 2019-10-01 17:22:56 +0900 |
commit | db669dda273b31215a6b002fd7c753f394649369 (patch) | |
tree | a2c7b0f5211491495747cfdc8e1e74dde4f1e8ff /src/lib/dlt_user_cfg.h | |
parent | b5902c506e958933bbabe6bdab8d676e0aa0bbc5 (diff) | |
download | DLT-daemon-db669dda273b31215a6b002fd7c753f394649369.tar.gz |
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 <Chi.VoTrung@vn.bosch.com>
Signed-off-by: Saya Sugiura <ssugiura@jp.adit-jv.com>
Signed-off-by: Simon Herkenhoff <sherkenhoff@jp.adit-jv.com>
Signed-off-by: Bui Nguyen Quoc Thanh <Thanh.BuiNguyenQuoc@vn.bosch.com>
Diffstat (limited to 'src/lib/dlt_user_cfg.h')
-rw-r--r-- | src/lib/dlt_user_cfg.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/dlt_user_cfg.h b/src/lib/dlt_user_cfg.h index 9f3cc92..8951b75 100644 --- a/src/lib/dlt_user_cfg.h +++ b/src/lib/dlt_user_cfg.h @@ -123,8 +123,8 @@ /* default message id for non-verbose mode, if no message id was provided */ #define DLT_USER_DEFAULT_MSGID 0xffff -/* delay for receiver thread (nsec) */ -#define DLT_USER_RECEIVE_NDELAY (100000000) +/* delay for housekeeper thread (nsec) while receiving messages*/ +#define DLT_USER_RECEIVE_NDELAY (500 * 1000 * 1000) /* Name of environment variable for local print mode */ #define DLT_USER_ENV_LOCAL_PRINT_MODE "DLT_LOCAL_PRINT_MODE" |