Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHenrik Rentz-Reichert2019-11-25 03:13:38 -0500
committerHenrik Rentz-Reichert2019-11-25 10:45:32 -0500
commit22b5b0f62d18b190474feee268a2119134fff344 (patch)
tree7cdc22b7b2d9c5482325a89ec5b0887efe4428e9 /runtime/org.eclipse.etrice.runtime.c/src/common/messaging
parent575610044f25e682bdac0554831c1ba005fa8fd6 (diff)
downloadorg.eclipse.etrice-22b5b0f62d18b190474feee268a2119134fff344.tar.gz
org.eclipse.etrice-22b5b0f62d18b190474feee268a2119134fff344.tar.xz
org.eclipse.etrice-22b5b0f62d18b190474feee268a2119134fff344.zip
Bug 552836 Race condition in shutdown sequence of Runner causes SEGV
Destroying the thread in etMessageService_destroy() Change-Id: Icee3faab3bf21acc50545274b2b74d41648a7a9c
Diffstat (limited to 'runtime/org.eclipse.etrice.runtime.c/src/common/messaging')
-rw-r--r--runtime/org.eclipse.etrice.runtime.c/src/common/messaging/etMessageService.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/runtime/org.eclipse.etrice.runtime.c/src/common/messaging/etMessageService.c b/runtime/org.eclipse.etrice.runtime.c/src/common/messaging/etMessageService.c
index 6fd12970f..5aabc44d1 100644
--- a/runtime/org.eclipse.etrice.runtime.c/src/common/messaging/etMessageService.c
+++ b/runtime/org.eclipse.etrice.runtime.c/src/common/messaging/etMessageService.c
@@ -131,9 +131,11 @@ void etMessageService_destroy(etMessageService* self){
/* unregister from runtime */
etRuntime_unregisterMessageService(self);
+ etThread_destruct( &(self->thread) );
etMutex_destruct( &(self->poolMutex) );
etMutex_destruct( &(self->queueMutex) );
etSema_destruct( &(self->executionSemaphore) );
+
ET_MSC_LOGGER_SYNC_EXIT
}

Back to the top