lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


  Hi Pablo,

On Mon, 20 Aug 2001, Pablo Saldo wrote:
> 
> How can I make one thread stop another's execution, maybe with some 
> finalisation issues?
> My problem is making a "esc" key or a button to stop a file processing.
> 

  In PTHREAD library, there is a function that does it. It is
pthread_cancel (man pthread_cancel for details). I don't know
if it'll be avaiable in lua's pthread bind. But, if it's not, 
it won't be difficult to do it.

  Hope it helped somehow.
  Regards,

  -- Diogo.