On Fri, Sep 9, 2016 at 11:14 AM, Daniel Burchardt
<[email protected]> wrote:
> I know but i have problem with this:
>         static void* thread_setTimeout( void * arg ) {
>             v8::Locker locker(v8::Isolate::GetCurrent());
>             v8::HandleScope handle_scope(v8::Isolate::GetCurrent());
>
>             usleep( 1000000 );
>
>             v8::Unlocker unlocker(v8::Isolate::GetCurrent());
>         }
>
> after run process is terminated by seg fault
>
> 0x00007ffff56c6b7f in v8::Locker::Initialize(v8::Isolate*) ()

You need to pass the isolate explicitly to your thread.
v8::Isolate::GetCurrent() won't work, it stores the current isolate in
thread-local storage.

-- 
-- 
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