On Fri, Jun 24, 2011 at 12:11 AM, Marcel Laverdet <[email protected]>wrote:
> The more verbose locker documentation can be found here: > http://bespin.cz/~ondras/html/classv8_1_1Unlocker.html > Thanks for that. And now i have a small request for the v8 developers: { isolate->Exit(); v8::Unlocker <http://bespin.cz/~ondras/html/classv8_1_1Unlocker.html> unlocker(isolate); ... // Code not using V8 goes here while V8 can run in another thread. ... } // Destructor called here. isolate->Enter(); that is really error-prone in the face of exceptions. i would recommend adding a Isolate::Descope (or similar), which does the opposite of Isolate::Scope. Something like: explicit Descope <http://bespin.cz/~ondras/html/classv8_1_1Isolate_1_1Scope.html>(Isolate <http://bespin.cz/~ondras/html/classv8_1_1Isolate.html>* isolate) : isolate_(isolate) {02621 isolate->Exit();02622 }02623 02624 ~Descope <http://bespin.cz/~ondras/html/classv8_1_1Isolate_1_1Scope.html>() { isolate_->Enter(); } :-? -- ----- stephan beal http://wanderinghorse.net/home/stephan/ -- v8-users mailing list [email protected] http://groups.google.com/group/v8-users
