diff options
author | jsdelfino <jsdelfino@13f79535-47bb-0310-9956-ffa450edef68> | 2010-01-02 22:13:15 +0000 |
---|---|---|
committer | jsdelfino <jsdelfino@13f79535-47bb-0310-9956-ffa450edef68> | 2010-01-02 22:13:15 +0000 |
commit | 996d5f6c4e21d3d8688674f20e6f4318e3ace607 (patch) | |
tree | be6a3d80f2cab11cd39d0f55bd4bc55793a2e735 /sca-cpp/trunk/modules/server/mod-cpp.hpp | |
parent | dda9255a5c9336cd3078f85f02e88120563ad304 (diff) |
Cleaned up lifecycle handling of objects that hold library and file resources. Fixed pool stack initialization concurrency issue. Re-enabled watch strings to help watch compound values in debugger.
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@895305 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to '')
-rw-r--r-- | sca-cpp/trunk/modules/server/mod-cpp.hpp | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/sca-cpp/trunk/modules/server/mod-cpp.hpp b/sca-cpp/trunk/modules/server/mod-cpp.hpp index 2cf2e540d6..17d44e1428 100644 --- a/sca-cpp/trunk/modules/server/mod-cpp.hpp +++ b/sca-cpp/trunk/modules/server/mod-cpp.hpp @@ -65,14 +65,11 @@ struct evalImplementation { * Read a C++ component implementation. */ const failable<lambda<value(const list<value>&)> > readImplementation(const string& path, const list<value>& px) { - const failable<lib> ilib(dynlib(path + dynlibExt)); - if (!hasContent(ilib)) - return mkfailure<lambda<value(const list<value>&)> >(reason(ilib)); - - const failable<lambda<value(const list<value>&)> > impl(dynlambda<value(const list<value>&)>("eval", content(ilib))); + const lib ilib(*(new (gc_new<lib>()) lib(path + dynlibExt))); + const failable<lambda<value(const list<value>&)> > impl(dynlambda<value(const list<value>&)>("eval", ilib)); if (!hasContent(impl)) return impl; - return lambda<value(const list<value>&)>(evalImplementation(content(ilib), content(impl), px)); + return lambda<value(const list<value>&)>(evalImplementation(ilib, content(impl), px)); } } |