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/json | |
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 'sca-cpp/trunk/modules/json')
-rw-r--r-- | sca-cpp/trunk/modules/json/json.hpp | 13 |
1 files changed, 2 insertions, 11 deletions
diff --git a/sca-cpp/trunk/modules/json/json.hpp b/sca-cpp/trunk/modules/json/json.hpp index 9124c5143c..e2f036541a 100644 --- a/sca-cpp/trunk/modules/json/json.hpp +++ b/sca-cpp/trunk/modules/json/json.hpp @@ -46,7 +46,7 @@ void reportError(unused JSContext *cx, const char *message, JSErrorReport *repor } /** - * Encapsulates a JavaScript runtime. Can be shared by multiple threads in + * Encapsulates a JavaScript runtime. Shared by multiple threads in * a process. */ class JSONRuntime { @@ -58,9 +58,6 @@ public: cleanup(); } - ~JSONRuntime() { - } - operator JSRuntime*() const { return rt; } @@ -75,17 +72,11 @@ private: } JSRuntime* rt; -}; - -/** - * Global JavaScript runtime instance. - */ -JSONRuntime jsRuntime; +} jsRuntime; JSClass jsGlobalClass = { "global", JSCLASS_GLOBAL_FLAGS, JS_PropertyStub, JS_PropertyStub, JS_PropertyStub, JS_PropertyStub, JS_EnumerateStub, JS_ResolveStub, JS_ConvertStub, JS_FinalizeStub, JSCLASS_NO_OPTIONAL_MEMBERS}; - /** * Represents a JavaScript context. Create one per thread. */ |