[cells-gtk-devel] Reentrant Cell ?

Peter Hildebrandt peter.hildebrandt at gmail.com
Thu Jun 12 22:25:31 UTC 2008


On 6/12/08, Ken Tilton <kentilton at gmail.com> wrote:

> You might do something with Gtk timers (ISTR those) combined with an input
> Cell if the GTk timer mechanism is attractive for any reason.

You might look at the pulse demo on the display tab in test-gtk for an
example of gtk "timeout", as they call it.

You could link that to a custom function which runs the long
computations step by step.  This might be ok if the long computations
can be broken down to smaller atomic units.

Then you could have something like

(mapc #'iterate calculations)
(setf calculations (remove-if #'done calculations)

where calculations is populated by the c?-with-iterative-solution
macro.  Oh, and you need to write iterate and done.

Or just use threads (from bordeaux-threads) in c?-calculate-in-thread
and let the system figure out the scheduling.

Peter



More information about the cells-gtk-devel mailing list