g_mutex_init(&handle->resources_lock);
*rm = (mm_resource_manager_h *) handle;
+
+ MM_RM_INFO("adding handle %p", handle);
+
__mm_resource_handles_lock();
g_ptr_array_add(handles, handle);
mm_resource_manager_res_p resource = (mm_resource_manager_res_p) resource_h;
int idx;
+ MM_RM_INFO("Enter %p", rm);
+
__mm_resource_handles_lock();
MM_RESOURCE_MANAGER_CHECK(handle);
__mm_resources_lock(handle);
{
mm_resource_manager_s *handle = MM_RESOURCE_MANAGER(rm);
+ MM_RM_INFO("Enter %p", rm);
+
__mm_resource_handles_lock();
MM_RESOURCE_MANAGER_CHECK(handle);
__mm_resources_lock(handle);
static void __mm_resource_handles_lock(void)
{
+ LOGD(">>> handles lock");
g_mutex_lock(&handles_lock);
}
static void __mm_resource_handles_unlock(void)
{
g_mutex_unlock(&handles_lock);
+ LOGD("<<< handles unlock");
}
static void __mm_resources_lock(mm_resource_manager_s *h)