From 6e9f52370133b6e39f6b2d4e7bad9584dbf43412 Mon Sep 17 00:00:00 2001 From: Joakim Sindholt Date: Wed, 7 Apr 2010 22:45:18 +0200 Subject: main/make: don't initialize or require threads I used them to display an async pulse bar when loading the rules-ng file, but since I fixed the bug, it takes no time what-so-ever. --- Makefile.am | 1 - configure.ac | 1 - src/main.c | 6 ------ src/main.vala | 5 ----- 4 files changed, 13 deletions(-) diff --git a/Makefile.am b/Makefile.am index 6a1bfda..c674fde 100644 --- a/Makefile.am +++ b/Makefile.am @@ -23,7 +23,6 @@ rsim_SOURCES = \ $(NULL) rsim_VALAFLAGS = \ - --thread \ --pkg gtk+-2.0 \ --pkg libxml-2.0 diff --git a/configure.ac b/configure.ac index e65d358..0234cec 100644 --- a/configure.ac +++ b/configure.ac @@ -21,7 +21,6 @@ LIBXML_REQUIRED=2.0 PKG_CHECK_MODULES(RSIM, glib-2.0 >= $GLIB_REQUIRED gobject-2.0 >= $GLIB_REQUIRED - gthread-2.0 >= $GLIB_REQUIRED gtk+-2.0 >= $GTK_REQUIRED libxml-2.0 >= $LIBXML_REQUIRED) AC_SUBST(RSIM_CFLAGS) diff --git a/src/main.c b/src/main.c index 70b66ca..64fc73f 100644 --- a/src/main.c +++ b/src/main.c @@ -617,11 +617,6 @@ GType emulation_spec_entry_get_type (void) { gint _main (char** args, int args_length1) { gint result; - if (!g_thread_supported ()) { - fprintf (stderr, "Cannot run without threads.\n"); - result = 1; - return result; - } gui_init (&args, &args_length1); { guint i; @@ -648,7 +643,6 @@ gint _main (char** args, int args_length1) { int main (int argc, char ** argv) { - g_thread_init (NULL); g_type_init (); return _main (argv, argc); } diff --git a/src/main.vala b/src/main.vala index 091da5d..ab7c359 100644 --- a/src/main.vala +++ b/src/main.vala @@ -391,11 +391,6 @@ namespace Emulation public static int main(string[] args) { - if (!Thread.supported()) { - stderr.printf("Cannot run without threads.\n"); - return 1; - } - GUI.init(ref args); /* vala doesn't unref globals */ -- cgit v1.2.3