pkj gstreamer: gstreamer/ gstreamer/libs/gst/check/
[email protected] Wed, 10 Dec 2008 07:20:00 -0800 (PST)
| Newsgroups | gmane.comp.video.gstreamer.cvs |
|---|---|
| Message-ID | <[email protected]> |
CVS Root: /cvs/gstreamer
Module: gstreamer
Changes by: pkj
Date: Wed Dec 10 2008 15:20:00 UTC
Log message:
* libs/gst/check/gstcheck.h: Allow check tests to use
MAIN_START_THREADS()/MAIN_STOP_THREADS() multiple times. Also allows
CK_FORK=no to be used with multiple check test that use threads.
Modified files:
. : ChangeLog
libs/gst/check : gstcheck.h
Links:
http://freedesktop.org/cgi-bin/viewcvs.cgi/gstreamer/gstreamer/ChangeLog.diff?r1=1.4190&r2=1.4191
http://freedesktop.org/cgi-bin/viewcvs.cgi/gstreamer/gstreamer/libs/gst/check/gstcheck.h.diff?r1=1.27&r2=1.28
====Begin Diffs====
Index: ChangeLog
===================================================================
RCS file: /cvs/gstreamer/gstreamer/ChangeLog,v
retrieving revision 1.4190
retrieving revision 1.4191
diff -u -d -r1.4190 -r1.4191
--- ChangeLog 9 Dec 2008 16:23:56 -0000 1.4190
+++ ChangeLog 10 Dec 2008 15:19:43 -0000 1.4191
@@ -1,3 +1,9 @@
+2008-12-10 Peter Kjellerstedt <[email protected]>
+
+ * libs/gst/check/gstcheck.h: Allow check tests to use
+ MAIN_START_THREADS()/MAIN_STOP_THREADS() multiple times. Also allows
+ CK_FORK=no to be used with multiple check test that use threads.
2008-12-09 Sebastian Dröge <[email protected]>
* gst/gstutils.c: (gst_element_get_compatible_pad):
Index: gstcheck.h
RCS file: /cvs/gstreamer/gstreamer/libs/gst/check/gstcheck.h,v
retrieving revision 1.27
retrieving revision 1.28
diff -u -d -r1.27 -r1.28
--- gstcheck.h 21 Jun 2008 21:20:13 -0000 1.27
+++ gstcheck.h 10 Dec 2008 15:19:45 -0000 1.28
@@ -264,9 +264,11 @@
G_STMT_START { \
_gst_check_threads_running = TRUE; \
\
- mutex = g_mutex_new (); \
- start_cond = g_cond_new (); \
- sync_cond = g_cond_new (); \
+ if (mutex == NULL) { \
+ mutex = g_mutex_new (); \
+ start_cond = g_cond_new (); \
+ sync_cond = g_cond_new (); \
+ } \
} G_STMT_END;
#define MAIN_START_THREAD_FUNCTIONS(count, function, data) \
@@ -307,6 +309,8 @@
/* join all threads */ \
GST_DEBUG ("MAIN: joining"); \
g_list_foreach (thread_list, (GFunc) g_thread_join, NULL); \
+ g_list_free (thread_list); \
+ thread_list = NULL; \
GST_DEBUG ("MAIN: joined"); \
------------------------------------------------------------------------------
SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, Nevada.
The future of the web can't happen without you. Join us at MIX09 to help
pave the way to the Next Web now. Learn more and register at
http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/
_______________________________________________
gstreamer-cvs-verbose mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/gstreamer-cvs-verbose