lua-users home
lua-l archive

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


On Thursday 29 March 2007, Tim Michals wrote:
> I have a simple script running using coroutines one of the coroutines calls
> a mapped C function that setups a timer with a call back. Since this timer
> is long running, the fucntion returns then coroutine is put to suspend, and
> then the script goes off and processes something else, now the timer fires
> via a OS thread, how can the timer post back to Lua to wake up the
> coroutine?

check my helper threads toolkit (http://helper-threads.luaforge.net), it 
already does most of what you mention.

-- 
Javier

Attachment: pgppxt0Oa15oK.pgp
Description: PGP signature