summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoakim Sindholt <opensource@zhasha.com>2010-04-07 22:45:18 +0200
committerJoakim Sindholt <opensource@zhasha.com>2010-04-07 22:45:18 +0200
commit6e9f52370133b6e39f6b2d4e7bad9584dbf43412 (patch)
treec0b944b96c77de302e70a0418d2b1d3ff877d777
parent269c326f68a517065a16fb5e3a491ef5b34951d9 (diff)
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.
-rw-r--r--Makefile.am1
-rw-r--r--configure.ac1
-rw-r--r--src/main.c6
-rw-r--r--src/main.vala5
4 files changed, 0 insertions, 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 */