diff options
author | Bui Nguyen Quoc Thanh <thanh.buinguyenquoc@vn.bosch.com> | 2020-09-23 10:30:07 +0700 |
---|---|---|
committer | Saya Sugiura <39760799+ssugiura@users.noreply.github.com> | 2021-01-06 09:27:28 +0900 |
commit | 1bbccc2bb07109007fecaf8007a6552d056edb66 (patch) | |
tree | 1af55bffa6705c45aeb3c81ac9816ac538d22f2e /src/lib/dlt_user_cfg.h | |
parent | 2fa8b0d10a401aadab068015c0c08dd4d39e6c98 (diff) | |
download | DLT-daemon-1bbccc2bb07109007fecaf8007a6552d056edb66.tar.gz |
libdlt: Use SIGUSR1 for thread on Android
Since bionic does not support pthread_cancel(),
try to terminate housekeeper thread via SIGUSR1.
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 | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/lib/dlt_user_cfg.h b/src/lib/dlt_user_cfg.h index 93d3206..d394daa 100644 --- a/src/lib/dlt_user_cfg.h +++ b/src/lib/dlt_user_cfg.h @@ -123,12 +123,12 @@ /* default message id for non-verbose mode, if no message id was provided */ #define DLT_USER_DEFAULT_MSGID 0xffff -/* delay for housekeeper thread (nsec) while receiving messages*/ -#define DLT_USER_RECEIVE_NDELAY (500 * 1000 * 1000) - /* timeout for poll operations in milliseconds*/ #define DLT_USER_RECEIVE_MDELAY (500) +/* delay for housekeeper thread (nsec) while receiving messages*/ +#define DLT_USER_RECEIVE_NDELAY (DLT_USER_RECEIVE_MDELAY * 1000 * 1000) + /* Name of environment variable for local print mode */ #define DLT_USER_ENV_LOCAL_PRINT_MODE "DLT_LOCAL_PRINT_MODE" |