I don't think you can call v8 functions from a thread other than the v8 event loop thread.
BTW, you should use libuv uv_queue_work() to deal with the threads. Check this out: http://www.slideshare.net/nsm.nikhil/writing-native-bindings-to-nodejs-in-c Thanks, Raymond On Monday, September 23, 2013 12:30:59 AM UTC-7, Ashish Negi wrote: > > Hi > I am trying to create a c++ addon for nodejs where we can execute > javascript from c++. I know about v8 and its Script and Compile functions. > But i am hitting with some problem : > https://groups.google.com/forum/#!topic/nodejs/hf0dwBLlWvQ > > Is there any other way that i can do this ? > -- -- Job Board: http://jobs.nodejs.org/ Posting guidelines: https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines You received this message because you are subscribed to the Google Groups "nodejs" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/nodejs?hl=en?hl=en --- You received this message because you are subscribed to the Google Groups "nodejs" 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/groups/opt_out.
