This is an automated email from the ASF dual-hosted git repository.
pnoltes pushed a commit to branch develop
in repository https://gitbox.apache.org/repos/asf/celix.git
The following commit(s) were added to refs/heads/develop by this push:
new 82b4171 Fixes an issue with locking
82b4171 is described below
commit 82b417197b2d82ea085d1679a231f1e3afd67da2
Author: Pepijn Noltes <[email protected]>
AuthorDate: Tue Aug 27 23:40:34 2019 +0200
Fixes an issue with locking
---
libs/framework/src/dm_component_impl.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/libs/framework/src/dm_component_impl.c
b/libs/framework/src/dm_component_impl.c
index 072910c..3897fc9 100644
--- a/libs/framework/src/dm_component_impl.c
+++ b/libs/framework/src/dm_component_impl.c
@@ -1536,6 +1536,7 @@ void
celix_dmComponent_destroyComponentInfo(dm_component_info_pt info) {
bool celix_dmComponent_isActive(celix_dm_component_t *component) {
pthread_mutex_lock(&component->mutex);
- return component->active;
+ bool active = component->active;
pthread_mutex_unlock(&component->mutex);
+ return active;
}