diff options
author | David Robillard <d@drobilla.net> | 2007-10-20 02:13:45 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2007-10-20 02:13:45 +0000 |
commit | 31095ff836e7ee3af7bdae37827fdefe7abd60e6 (patch) | |
tree | 4070edcab32bd1328e98ba30d5f281c4a960161c /src | |
parent | e0bd88a088e639afedff91ce1f61351729128fd9 (diff) | |
download | machina-31095ff836e7ee3af7bdae37827fdefe7abd60e6.tar.gz machina-31095ff836e7ee3af7bdae37827fdefe7abd60e6.tar.bz2 machina-31095ff836e7ee3af7bdae37827fdefe7abd60e6.zip |
Fix thread error message/death on launching machina_gui
git-svn-id: http://svn.drobilla.net/lad/machina@888 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src')
-rw-r--r-- | src/gui/Makefile.am | 2 | ||||
-rw-r--r-- | src/gui/main.cpp | 3 |
2 files changed, 4 insertions, 1 deletions
diff --git a/src/gui/Makefile.am b/src/gui/Makefile.am index 0dc1326..f6a2ef2 100644 --- a/src/gui/Makefile.am +++ b/src/gui/Makefile.am @@ -1,4 +1,4 @@ -AM_CXXFLAGS = -I$(top_srcdir)/flowcanvas -I$(top_srcdir)/raul -I$(top_srcdir)/machina/src/engine -DPKGDATADIR=\"$(pkgdatadir)\" @LIBGLADEMM_CFLAGS@ @GNOMECANVASMM_CFLAGS@ @JACK_CFLAGS@ +AM_CXXFLAGS = -I$(top_srcdir)/flowcanvas -I$(top_srcdir)/raul -I$(top_srcdir)/machina/src/engine -DPKGDATADIR=\"$(pkgdatadir)\" @LIBGLADEMM_CFLAGS@ @GNOMECANVASMM_CFLAGS@ @JACK_CFLAGS@ @GTHREAD_CFLAGS@ EXTRA_DIST = machina.gladep diff --git a/src/gui/main.cpp b/src/gui/main.cpp index 034bc62..62de866 100644 --- a/src/gui/main.cpp +++ b/src/gui/main.cpp @@ -37,6 +37,9 @@ using namespace Machina; int main(int argc, char** argv) { + if ( ! Glib::thread_supported()) + Glib::thread_init(); + Raul::RDF::World rdf_world; SharedPtr<Machina::Machine> machine; |