Re: [v8-users] v8 embedded, multithreading issues, persistent context, boilerplate code

2014-10-14 Thread Sven Panne
On Tue, Oct 14, 2014 at 2:53 AM, Mark Tarrabain markt1...@gmail.com wrote: [...] It appears to be impossible for different threads to use different isolates at the same time, That't not correct: 10 different threads could happily each use a different Isolate at the same time, that's how web

Re: [v8-users] v8 embedded, multithreading issues, persistent context, boilerplate code

2014-10-14 Thread Mark Tarrabain
Egad I never realized that I had that typo. What I *MEANT* to say was that it appears to be impossible for different threads to use the *same* isiolate at the same time... freudian slip, I guess. Indeed, you've confirmed what I was suspecting. In my case, a typed array won't do the

Re: [v8-users] v8 embedded, multithreading issues, persistent context, boilerplate code

2014-10-13 Thread Mark Tarrabain
Jakob, Thanks for your input you've confirmed what I already expected about isolates. It appears to be impossible for different threads to use different isolates at the same time, and it appears to be impossible for different isolates to share data in any way without writing an inteface

[v8-users] v8 embedded, multithreading issues, persistent context, boilerplate code

2014-10-11 Thread Mark Tarrabain
I'm still somewhat new to embedded v8 programming with C++, so it's possible that I might be doing things in less than an optimal way here, but how I've been using v8 so far is that whenever I want to use it, I am using some (possibly not wholly necessary) boilerplate code kind of like the