Package _emerge :: Module AbstractPollTask :: Class AbstractPollTask
[hide private]

Class AbstractPollTask

source code

                        object --+        
                                 |        
portage.util.SlotObject.SlotObject --+    
                                     |    
     AsynchronousTask.AsynchronousTask --+
                                         |
                                        AbstractPollTask
Known Subclasses:

Instance Methods [hide private]
 
isAlive(self) source code
 
_read_array(self, f, event)
NOTE: array.fromfile() is used here only for testing purposes, because it has bugs in all known versions of Python (including Python 2.7 and Python 3.2).
source code
 
_read_buf(self, fd, event)
| POLLIN | RETURN | BIT | VALUE | --------------------------------------------------- | 1 | Read self._bufsize into a string of bytes, | | handling EAGAIN and EIO.
source code
 
_unregister(self) source code
 
_log_poll_exception(self, event) source code
 
_unregister_if_appropriate(self, event) source code
 
_wait(self) source code
 
_wait_loop(self, timeout=None) source code

Inherited from AsynchronousTask.AsynchronousTask: addExitListener, addStartListener, cancel, poll, removeExitListener, removeStartListener, start, wait

Inherited from portage.util.SlotObject.SlotObject: __init__, copy

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Class Variables [hide private]
  _bufsize = 4096
Properties [hide private]
  _exceptional_events
  _registered_events
  _registered
  scheduler

Inherited from AsynchronousTask.AsynchronousTask: background, cancelled, returncode

Inherited from object: __class__

Method Details [hide private]

isAlive(self)

source code 
Overrides: AsynchronousTask.AsynchronousTask.isAlive

_read_array(self, f, event)

source code 

NOTE: array.fromfile() is used here only for testing purposes, because it has bugs in all known versions of Python (including Python 2.7 and Python 3.2). See PipeReaderArrayTestCase.

| POLLIN | RETURN | BIT | VALUE | --------------------------------------------------- | 1 | Read self._bufsize into an instance of | | array.array('B') and return it, handling | | EOFError and IOError. An empty array | | indicates EOF. | --------------------------------------------------- | 0 | None

_read_buf(self, fd, event)

source code 

| POLLIN | RETURN | BIT | VALUE | --------------------------------------------------- | 1 | Read self._bufsize into a string of bytes, | | handling EAGAIN and EIO. An empty string | | of bytes indicates EOF. | --------------------------------------------------- | 0 | None

_wait(self)

source code 
Overrides: AsynchronousTask.AsynchronousTask._wait

Property Details [hide private]

_exceptional_events

Get Method:
unreachable._exceptional_events(self)

_registered_events

Get Method:
unreachable._registered_events(self)