diff options
author | Josh Blum | 2013-08-01 01:12:24 -0700 |
---|---|---|
committer | Josh Blum | 2013-08-01 01:12:24 -0700 |
commit | a23bf59c46dae7aa25c4763c6122d0822c88abc7 (patch) | |
tree | af37ea0c6b2872071938390c857e4efcb4975d86 /lib/factory.cpp | |
parent | 1897808616c91d277e24335a337bec92592fb87a (diff) | |
download | sandhi-a23bf59c46dae7aa25c4763c6122d0822c88abc7.tar.gz sandhi-a23bf59c46dae7aa25c4763c6122d0822c88abc7.tar.bz2 sandhi-a23bf59c46dae7aa25c4763c6122d0822c88abc7.zip |
gras: jit factory api + unit tests
Diffstat (limited to 'lib/factory.cpp')
-rw-r--r-- | lib/factory.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/factory.cpp b/lib/factory.cpp index 7115197..d168dba 100644 --- a/lib/factory.cpp +++ b/lib/factory.cpp @@ -36,7 +36,7 @@ static FactoryRegistryType &get_factory_registry(void) static boost::mutex mutex; -void Factory::_register_factory(const std::string &path, void *entry) +void gras::_register_factory(const std::string &path, void *entry) { boost::mutex::scoped_lock l(mutex); if (get_factory_registry().count(path) != 0) @@ -46,7 +46,7 @@ void Factory::_register_factory(const std::string &path, void *entry) get_factory_registry()[path].reset(reinterpret_cast<FactoryRegistryEntry *>(entry)); } -Element *Factory::_handle_make(const std::string &path, const PMCC &args) +Element *gras::_handle_make(const std::string &path, const PMCC &args) { boost::mutex::scoped_lock l(mutex); if (get_factory_registry().count(path) == 0) |