You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@celix.apache.org by pn...@apache.org on 2019/08/27 21:40:55 UTC
[celix] branch develop updated: Fixes an issue with locking
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 <pe...@gmail.com>
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;
}