class documentation

class _ThreadedWin32EventsMixin: (source)

Known subclasses: twisted.internet.iocpreactor.reactor.IOCPReactor, twisted.internet.selectreactor.SelectReactor

Implements interfaces: twisted.internet.interfaces.IReactorWin32Events

View In Hierarchy

This mixin implements IReactorWin32Events for another reactor by running a Win32Reactor in a separate thread and dispatching work to it.
Method add​Event
Method remove​Event
Method _make​Helper​Reactor Create and (in a new thread) start a Win32Reactor instance to use for the implementation of IReactorWin32Events.
Method _unmake​Helper​Reactor Stop and discard the reactor started by _makeHelperReactor.
Instance Variable _reactor The Win32Reactor running in the other thread. This is None until it is actually needed.
Instance Variable _reactor​Thread The threading.Thread which is running the Win32Reactor. This is None until it is actually needed.
def addEvent(self, event, fd, action): (source)
def _makeHelperReactor(self): (source)
Create and (in a new thread) start a Win32Reactor instance to use for the implementation of IReactorWin32Events.
def _unmakeHelperReactor(self): (source)
Stop and discard the reactor started by _makeHelperReactor.
_reactor = (source)
The Win32Reactor running in the other thread. This is None until it is actually needed.
_reactorThread = (source)
The threading.Thread which is running the Win32Reactor. This is None until it is actually needed.