We don't need to call pthread_mutex_trylock to call pthread_mutex_unlock.
Just call pthread_mutex_unlock to ensure all mutexes are locked.
Change-Id: Id43c9fdddaa400454f9d462430ae90ecf25615c8
EXTERN void
tdm_log_reset(void)
{
- pthread_mutex_trylock(&log_lock);
pthread_mutex_unlock(&log_lock);
}
_pthread_mutex_unlock(&private_display->lock);
pthread_join(private_loop->private_thread->event_thread, NULL);
- pthread_mutex_trylock(&cb_list_lock);
pthread_mutex_unlock(&cb_list_lock);
tdm_log_reset();