return true;
if (pthread_mutex_init(&eom_lock, NULL)) {
- fprintf(stderr, "fail: eom mutex init");
- return false;
+ fprintf(stderr, "fail: eom mutex init");/*LCOV_EXCL_LINE*/
+ return false;/*LCOV_EXCL_LINE*/
}
- init = true;
+ eom_mutex_init = true;
+
+ return true;
+}
+
+static bool
+_eom_mutex_destory(void)
+{
+ if (!eom_mutex_init)
+ return true;
+
+ if (pthread_mutex_destroy(&eom_lock)) {
+ fprintf(stderr, "fail: eom mutex destory");
+ return false;
+ }
+
+ eom_mutex_init = false;
return true;
}
output_info_list = g_list_remove(output_info_list, output_info);
_eom_free_output_info(&output_info);
+ /*LCOV_EXCL_STOP*/
}
+ output_info_list = NULL;
_eom_mutex_unlock();