Just create a thread with pthreads or w/e and then use the Locker class
(look at the documentation for Locker for more information)

On Tue, Feb 28, 2012 at 2:35 AM, ckiewiet
<[email protected]>wrote:

> Hello,
>
> After doing some research w.r.t. Threads within V8, I have found the
> (undocumented?) v8::internal::Thread class. As for its usage, I am at
> a loss. I have inspected some of the unit test codes that deal with
> v8::internal::Thread, however I have not been able to yield anything
> usable. I cannot even get the code to link, as it claims that the
> destructor for Thread (v8::internal::~Thread) has not been defined.
> The reason behind my doing this is, that I am trying to spawn a thread
> that is able to invoke v8::V8::TerminateExecution after a certain
> timeout has passed, in order to prevent mal[formed|icious] user
> generated code from running indefinitely.
>
> Is there perhaps a special flag that I have overlooked in the build
> process that you need to specify if you wish to use
> v8::internal::Thread?
>
> Best Regards,
> C. Kiewiet
>
> --
> v8-users mailing list
> [email protected]
> http://groups.google.com/group/v8-users
>

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

Reply via email to