process/thread instances and attributes

James Mills prologic at shortcircuit.net.au
Sat Jan 17 06:18:06 CET 2009


On Fri, Jan 16, 2009 at 10:33 PM, Jesse Noller <jnoller at gmail.com> wrote:
(...)

> Personally, rather then using a value to indicate whether to run or
> not, I would tend to use an event to coordinate start/stop state.

The reason I implemented workers.Thread and workers.Process this way
is basically so taht long-running, potentially blocking work could be
done yet while still maintaining the ability to communicate with the rest
of the system and propagate events.

See: http://hg.softcircuit.com.au/index.wsgi/projects/circuits/file/0a97da2a69b3/circuits/workers.py

cheers
James



More information about the Python-list mailing list