[Zope-Coders] ThreadedAsync.LoopCallback

Toby Dickenson tdickenson@geminidataloggers.com
Mon, 24 Feb 2003 18:21:04 +0000


Ive just stubled into a new dark corner of zodb; the 
ThreadedAsync.LoopCallback module. It currently rebinds asyncore.loop to a 
new function that also provides hooks for callback functions to be triggered 
before entering a select loop. I am sure I dont fully understand how this is 
used.

Previously Zope called asyncore.loop from z2.py to run the main select loop. 
This was using the ThreadedAsync.LoopCallback version if ZEO is imported.

In Zope 2.7 this has changed - Zope now has its own main select loop in the 
Lifetime.py module. It is like asyncore.loop with some additional exit 
conditions to handle graceful shutdown.

Does Zope need to be calling the ThreadedAsync.LoopCallback hooks in its loop 
too?

(cc Barry, who has the most recent commits to LoopCallback.py)

-- 
Toby Dickenson
http://www.geminidataloggers.com/people/tdickenson