summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMohammed <mohammed.aldardoun@partner.bmw.de>2011-08-04 15:50:05 +0200
committerMohammed <mohammed.aldardoun@partner.bmw.de>2011-08-04 15:50:05 +0200
commit56f1617fede49235d8de1b9e84aa69d238127243 (patch)
tree34dec3a7404dad2260e76c261efff54d37a93ee7
parentc6989c36c39b52999099c96a3dbc15106b6eb6fa (diff)
downloadDLT-daemon-56f1617fede49235d8de1b9e84aa69d238127243.tar.gz
[GSW-46] DLT client library sets a huge stack size for internal thread. fixed
-rwxr-xr-xsrc/lib/dlt_user.c14
-rwxr-xr-xsrc/lib/dlt_user_cfg.h3
2 files changed, 4 insertions, 13 deletions
diff --git a/src/lib/dlt_user.c b/src/lib/dlt_user.c
index c1bcba4..47996ca 100755
--- a/src/lib/dlt_user.c
+++ b/src/lib/dlt_user.c
@@ -180,18 +180,12 @@ int dlt_init(void)
return -1;
}
- /* Set default thread stack size */
+ /* Initialize thread */
if (pthread_attr_init(&dlt_receiverthread_attr)<0)
{
- dlt_log(LOG_WARNING, "Initialization of default thread stack size failed!\n");
- }
- else
- {
- if (pthread_attr_setstacksize(&dlt_receiverthread_attr,DLT_USER_RECEIVERTHREAD_STACKSIZE)<0)
- {
- dlt_log(LOG_WARNING, "Setting of default thread stack size failed!\n");
- }
- }
+ dlt_log(LOG_WARNING, "Initialization of thread failed!\n");
+ return -1;
+ }
/* Start receiver thread */
if (pthread_create(&(dlt_receiverthread_handle),
diff --git a/src/lib/dlt_user_cfg.h b/src/lib/dlt_user_cfg.h
index f5f7700..4376587 100755
--- a/src/lib/dlt_user_cfg.h
+++ b/src/lib/dlt_user_cfg.h
@@ -103,9 +103,6 @@
/* Length of buffer for constructing text output */
#define DLT_USER_TEXT_LENGTH 10024
-/* Stack size of receiver thread */
-#define DLT_USER_RECEIVERTHREAD_STACKSIZE 100000
-
/* default value for storage to file, not used in daemon connection */
#define DLT_USER_DEFAULT_ECU_ID "ECU1"