projects
/
platform
/
upstream
/
gstreamer.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e10d54b
)
libs: gstcheck: init and clear global mutex and cond variables
author
Tim-Philipp Müller
<tim@centricular.com>
Sun, 6 Jul 2014 11:12:20 +0000
(12:12 +0100)
committer
Tim-Philipp Müller
<tim@centricular.com>
Sun, 6 Jul 2014 11:12:20 +0000
(12:12 +0100)
libs/gst/check/gstcheck.h
patch
|
blob
|
history
diff --git
a/libs/gst/check/gstcheck.h
b/libs/gst/check/gstcheck.h
index
ee92579
..
0d3d4a1
100644
(file)
--- a/
libs/gst/check/gstcheck.h
+++ b/
libs/gst/check/gstcheck.h
@@
-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;