diff options
author | David Robillard <d@drobilla.net> | 2006-09-08 03:58:00 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2006-09-08 03:58:00 +0000 |
commit | 48f87f1f1649fb7e169fdaac2cd38370e8a4a1fa (patch) | |
tree | 9da4b4b075791ac1ec78b499dbcbec6101f54690 /src/libs/engine/NodeFactory.cpp | |
parent | acbe9a26ec3ab689e430225d15e95e73a7378aa9 (diff) | |
download | ingen-48f87f1f1649fb7e169fdaac2cd38370e8a4a1fa.tar.gz ingen-48f87f1f1649fb7e169fdaac2cd38370e8a4a1fa.tar.bz2 ingen-48f87f1f1649fb7e169fdaac2cd38370e8a4a1fa.zip |
De-singleton-ified Engine
Slight rework of Responder/ClientKey/ClientInterface for Requests
git-svn-id: http://svn.drobilla.net/lad/ingen@119 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/libs/engine/NodeFactory.cpp')
-rw-r--r-- | src/libs/engine/NodeFactory.cpp | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/src/libs/engine/NodeFactory.cpp b/src/libs/engine/NodeFactory.cpp index 65829d97..7bac3bd8 100644 --- a/src/libs/engine/NodeFactory.cpp +++ b/src/libs/engine/NodeFactory.cpp @@ -56,8 +56,6 @@ namespace Ingen { NodeFactory::NodeFactory() : _has_loaded(false) { - pthread_mutex_init(&_plugin_list_mutex, NULL); - // Add builtin plugin types to _internal_plugins list // FIXME: ewwww, definitely a better way to do this! @@ -101,8 +99,6 @@ NodeFactory::load_plugins() // this (expensive!) stuff to happen. Not the best solution - would be nice // if clients could refresh plugins list for whatever reason :/ if (!_has_loaded) { - pthread_mutex_lock(&_plugin_list_mutex); - _plugins.clear(); _plugins = _internal_plugins; @@ -117,8 +113,6 @@ NodeFactory::load_plugins() #endif _has_loaded = true; - - pthread_mutex_unlock(&_plugin_list_mutex); } } @@ -137,8 +131,6 @@ NodeFactory::load_plugin(const Plugin* a_plugin, assert(poly == 1 || poly == parent->internal_poly()); assert(a_plugin); - pthread_mutex_lock(&_plugin_list_mutex); - Node* r = NULL; Plugin* plugin = NULL; @@ -201,8 +193,6 @@ NodeFactory::load_plugin(const Plugin* a_plugin, cerr << "[NodeFactory] WARNING: Unknown plugin type." << endl; } - pthread_mutex_unlock(&_plugin_list_mutex); - return r; } |