PengZheng commented on code in PR #569:
URL: https://github.com/apache/celix/pull/569#discussion_r1231676614


##########
libs/framework/src/framework.c:
##########
@@ -237,6 +241,11 @@ celix_status_t framework_create(framework_pt *out, 
celix_properties_t* config) {
     celixThreadMutex_create(&framework->dispatcher.mutex, NULL);
     celixThreadMutex_create(&framework->frameworkListenersLock, NULL);
     celixThreadMutex_create(&framework->bundleListenerLock, NULL);
+    celix_thread_mutexattr_t muAttr;
+    celixThreadMutexAttr_create(&muAttr);
+    celixThreadMutexAttr_settype(&muAttr, CELIX_THREAD_MUTEX_RECURSIVE);

Review Comment:
   I use it to combine `celix_framework_uninstallBundleEntry` and 
`celix_framework_installBundleInternal` into one operation. It can be fixed by 
some code refactoring.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscr...@celix.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to