[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Timing out LUA programs
- From: Sean Middleditch <elanthis@...>
- Date: 18 Jun 2002 13:19:02 -0400
On Tue, 2002-06-18 at 13:12, Eric Tetz wrote:
> --- Sean Middleditch <elanthis@awesomeplay.com> wrote:
> > *cough*pre-emptive Lua threads w/ time quotas*cough*
> >
> > Should I try starting another one of the pre-emptive vs. cooperative
> > threading debates, and throw in the point of killing threads as well?
> >
> > Really, this feature should be simple to code in with the yield support
> > Lua already has.
>
> It already has:
>
> http://www.tecgraf.puc-rio.br/~diego/luathreads/
Is this interface stable yet? Also, what would the possibility of this
being merged into Lua proper be? The lack of such a useful threading
implementation is the main reason I pulled Lua out of the projects I
originally used it in. ^,^
>
> > Long running Lua threads could allow the embedding application to
> > continue running, or simply be killed off.
>
> Off topic: anyone know how to "kill off a thread" safely in Windows? There is a KillThread in the
> API, but it definitely does not qualify as "safe".
>
>
> __________________________________________________
> Do You Yahoo!?
> Yahoo! - Official partner of 2002 FIFA World Cup
> http://fifaworldcup.yahoo.com