* Boston, MA 02111-1307, USA.
*/
+#include <stdio.h>
#include <stdlib.h>
#include <gst/gst.h>
+#include "gst/glib-compat-private.h"
static GstPoll *set;
static GList *fds = NULL;
}
}
- g_thread_exit (NULL);
return NULL;
}
num_threads = atoi (argv[1]);
- set = gst_poll_new (GST_POLL_MODE_POLL, TRUE);
+ set = gst_poll_new (TRUE);
for (t = 0; t < num_threads; t++) {
GError *error = NULL;
+#if !GLIB_CHECK_VERSION (2, 31, 0)
threads[t] = g_thread_create (run_test, GINT_TO_POINTER (t), TRUE, &error);
+#else
+ threads[t] = g_thread_try_new ("pollstresstest", run_test,
+ GINT_TO_POINTER (t), &error);
+#endif
if (error) {
printf ("ERROR: g_thread_create() %s\n", error->message);
exit (-1);