Hi,

I call JS functions from C++ in a thread which can be restarted multiple 
times during the lifetime of the program (thereby taking a new thread id 
and invalidating any thread local variables that may exist). So... it is 
never the case that there are race conditions regarding v8 calls. However 
unless I use a v8::Locker and and enter the context on each thread start, I 
sometimes get crashes. The key here is sometimes. 

>From reading through the code it seems that the locker does intialize 
thread local variables through a StackGuard eventually, but my question is 
how come it sometimes works without using a locker? Is there something 
which can make it always work? I'd much rather enter the context once and 
use no Lockers that having to deal with those.

-- Borislav

-- 
-- 
v8-users mailing list
[email protected]
http://groups.google.com/group/v8-users
--- 
You received this message because you are subscribed to the Google Groups 
"v8-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to