mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-17 03:35:21 +00:00
libs: gstcheck: init and clear global mutex and cond variables
This commit is contained in:
parent
e10d54b8e2
commit
b2bbd1edfa
1 changed files with 6 additions and 0 deletions
|
@ -416,6 +416,9 @@ MAIN_SYNCHRONIZE();
|
|||
|
||||
#define MAIN_INIT() \
|
||||
G_STMT_START { \
|
||||
g_mutex_init (&mutex); \
|
||||
g_cond_init (&start_cond); \
|
||||
g_cond_init (&sync_cond); \
|
||||
_gst_check_threads_running = TRUE; \
|
||||
} G_STMT_END;
|
||||
|
||||
|
@ -459,6 +462,9 @@ G_STMT_START { \
|
|||
g_list_foreach (thread_list, (GFunc) g_thread_join, NULL); \
|
||||
g_list_free (thread_list); \
|
||||
thread_list = NULL; \
|
||||
g_mutex_clear (&mutex); \
|
||||
g_cond_clear (&start_cond); \
|
||||
g_cond_clear (&sync_cond); \
|
||||
GST_DEBUG ("MAIN: joined"); \
|
||||
} G_STMT_END;
|
||||
|
||||
|
|
Loading…
Reference in a new issue