class documentation
class _ThreadFDWrapper: (source)
Constructor: _ThreadFDWrapper(reactor, fd, action, logPrefix)
This wraps an event handler and translates notification in the helper Win32Reactor
thread into a notification in the primary reactor thread.
Method | __init__ |
Undocumented |
Method | connection |
Pass through to the wrapped descriptor, but in the main reactor thread instead of the helper Win32Reactor thread. |
Method | log |
Return the original handler's log prefix, as it was given to __init__. |
Method | _execute |
Callback fired when the associated event is set. Run the action callback on the wrapped descriptor in the main reactor thread and raise or return whatever it raises or returns to cause this event handler to be removed from ... |
Instance Variable | _action |
A str giving the method of _fd which handles the event. |
Instance Variable | _fd |
The FileDescriptor to which the event will be dispatched. |
Instance Variable | _log |
The pre-fetched log prefix string for _fd, so that _fd.logPrefix does not need to be called in a non-main thread. |
Instance Variable | _reactor |
The primary reactor, the one to which event notification will be sent. |
Pass through to the wrapped descriptor, but in the main reactor thread instead of the helper Win32Reactor thread.
Callback fired when the associated event is set. Run the action callback on the wrapped descriptor in the main reactor thread and raise or return whatever it raises or returns to cause this event handler to be removed from self._reactor if appropriate.