def _trigger(self):
    'Called to launch the next request in the queue.'
    if _debug:
        IOQController._debug('_trigger')
    if (self.state != CTRL_IDLE):
        if _debug:
            IOQController._debug('    - not idle')
        return
    if (not self.ioQueue.queue):
        if _debug:
            IOQController._debug('    - empty queue')
        return
    iocb = self.ioQueue.get()
    try:
        err = None
        self.process_io(iocb)
    except:
        err = sys.exc_info()[1]
    if err:
        self.abort_io(iocb, err)
    if (self.state == CTRL_IDLE):
        deferred(IOQController._trigger, self)
Called to launch the next request in the queue.
def _trigger(self):
    
    if _debug:
        IOQController._debug('_trigger')
    if (self.state != CTRL_IDLE):
        if _debug:
            IOQController._debug('    - not idle')
        return
    if (not self.ioQueue.queue):
        if _debug:
            IOQController._debug('    - empty queue')
        return
    iocb = self.ioQueue.get()
    try:
        err = None
        self.process_io(iocb)
    except:
        err = sys.exc_info()[1]
    if err:
        self.abort_io(iocb, err)
    if (self.state == CTRL_IDLE):
        deferred(IOQController._trigger, self)