mm_resource_manager_res_type_e type;
mm_resource_manager_res_volume volume;
int pid;
- gboolean is_dbus_release_emitted;
/* if an element is NULL, there is no such a resource for the current platform. */
mm_resource_manager_dmn_res_p resources[MM_RESOURCE_MANAGER_RES_TYPE_MAX];
}
/* Avoid to emit release callback of resource manager's other resource, which can be changed by release policy*/
- if (conf->is_release_all && mgr->is_dbus_release_emitted && mgr->resources[type]->state == MM_RESOURCE_MANAGER_RES_STATE_FOR_RELEASE) {
+ if (conf->is_release_all && mgr->resources[type]->state == MM_RESOURCE_MANAGER_RES_STATE_FOR_RELEASE) {
MM_RM_WARNING("Already sending release callback to [mgr %p] RM #%"PRIu64" for %s of volume %d", mgr, id, res_name, volume);
continue;
}
}
mgr->resources[type]->state = MM_RESOURCE_MANAGER_RES_STATE_FOR_RELEASE;
- if (conf->is_release_all)
- mgr->is_dbus_release_emitted = TRUE;
MM_RM_DEBUG("RM #%"PRIu64" (type %s mgr %p) set acquired value as state (%s)",
id, res_name, mgr, res_state_str[mgr->resources[type]->state]);