Le 11/05/2011 20:18, Alessandro Dentella a écrit : > 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...
Hi, twisted.python.threadable.isInIOThread() should answer to that question. Regards, -- Thomas _______________________________________________ Twisted-Python mailing list Twisted-Python@twistedmatrix.com http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python