[Twisted-Python] test if thread is reactor's thread

Alessandro Dentella sandro at e-den.it
Wed May 11 12:18:17 MDT 2011


Hi,


is there a way to test if the thread a function is called is the reactor's
thread?

I have a function that can be called from the main thread or from the
reactor's thread and should behave differently...


thanks


sandro
*:-)


-- 
Sandro Dentella  *:-)
http://www.reteisi.org             Soluzioni libere per le scuole
http://sqlkit.argolinux.org        SQLkit home page - PyGTK/python/sqlalchemy




More information about the Twisted-Python mailing list