tdm_error ret;
double stamp1, stamp2, start;
- _pthread_mutex_lock(&gLock);
+ pthread_mutex_lock(&gLock);
if (g_private_display) {
g_private_display->init_count++;
- _pthread_mutex_unlock(&gLock);
+ pthread_mutex_unlock(&gLock);
if (error)
*error = TDM_ERROR_NONE;
return g_private_display;
*error = TDM_ERROR_NONE;
_pthread_mutex_unlock(&private_display->lock);
- _pthread_mutex_unlock(&gLock);
+ pthread_mutex_unlock(&gLock);
TDM_INFO("init time: %.3f ms", (tdm_helper_get_time() - start) * 1000.0);
failed_alloc:
if (error)
*error = ret;
- _pthread_mutex_unlock(&gLock);
+ pthread_mutex_unlock(&gLock);
return NULL;
}
if (!private_display)
return;
- _pthread_mutex_lock(&gLock);
+ pthread_mutex_lock(&gLock);
private_display->init_count--;
if (private_display->init_count > 0) {
- _pthread_mutex_unlock(&gLock);
+ pthread_mutex_unlock(&gLock);
return;
}
tdm_debug_dump_dir = NULL;
}
- _pthread_mutex_unlock(&gLock);
+ pthread_mutex_unlock(&gLock);
TDM_INFO("done");
}