On Wed, Apr 27, 2011 at 9:26 AM, Erik Corry <[email protected]> wrote:

> Yes.  You have to use the v8::Locker class in both the main thread and the
> background thread.  It's a class that does its work in the constructor and
> the destructor.  See include/v8.h for a description of its use.
>

And when you use it BE SURE to add a Locker instance in your main() BEFORE
doing anything with v8 except perhaps calling
v8::V8::SetFlagsFromCommandLine(). If you just add it to your callbacks they
will crash (in debug mode it tells you you've mis-used the locker, but in
non-debug mode it just crashes).

-- 
----- stephan beal
http://wanderinghorse.net/home/stephan/

-- 
v8-users mailing list
[email protected]
http://groups.google.com/group/v8-users

Reply via email to