Class a.r.CallEventThread(threading.Thread):

Part of aculab.reactor View Source View In Hierarchy

This is a helper thread class for call events on v5 drivers.

On v5, which is ancient, we cannot use the standard reactor for call events, but we want to have all callbacks coming from the same thread, because this requires no locking in the application and greatly simplifies the application design.

We use this thread to get events for all call handles and send them to the actual reactor through a pipe and a queue.
Method __init__ Undocumented
Method create_pipe Undocumented
Method shutdown Undocumented
Method add Undocumented
Method remove Undocumented
Method on_event Undocumented
Method enqueue Queue the event.
Method run Thread main - Process call events.
def __init__(self): (source)
Undocumented
def create_pipe(self, reactor): (source)
Undocumented
def shutdown(self): (source)
Undocumented
def add(self, reactor, call): (source)
Undocumented
def remove(self, reactor, call): (source)
Undocumented
def on_event(self, pipe): (source)
Undocumented
def enqueue(self, event): (source)
Queue the event.
def run(self): (source)
Thread main - Process call events.
API Documentation for pyAculab, generated by pydoctor at 2009-01-02 15:12:29.