[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: RE: [ANN] Helper Threads Toolkit
- From: "Vijay Aswadhati" <wyseman@...>
- Date: Sun, 12 Mar 2006 22:14:44 -0800
On Sunday, March 12, 2006 9:53 PM, Javier Guerra wrote:
> i have renamed the helper.finish(task) function to
> helper.update(task) and added the C function signal_task(). The
> idea is that it's now useful as a general communication between
> Lua code and a working thread.
> from the worker thread, when you want to send something to Lua,
> you call signal_task(), passing a boolean true if you want the
> thread to be paused.
> this causes the task to appear in the output queue. the Lua code
> then should call update(task, ...) to get any intermediate data,
> or even to send some data to the thread. thread will be
> automatically unpaused, if appropriate.
> please check it in CVS.
Thank you. I will take a look.