class documentation
class AsyncAwaker(GanetiBaseAsyncoreDispatcher):
A way to notify the asyncore loop that something is going on.
If an asyncore daemon is multithreaded when a thread tries to push some data to a socket, the main loop handling asynchronous requests might be sleeping waiting on a select(). To avoid this it can create an instance of the AsyncAwaker, which other threads can use to wake it up.
Method | __init__ |
Constructor for AsyncAwaker |
Method | close |
Undocumented |
Method | handle |
Undocumented |
Method | signal |
Signal the asyncore main loop. |
Instance Variable | connected |
Undocumented |
Instance Variable | in |
Undocumented |
Instance Variable | need |
Undocumented |
Instance Variable | out |
Undocumented |
Instance Variable | signal |
Undocumented |
Inherited from GanetiBaseAsyncoreDispatcher
:
Method | handle |
Log an error in handling any request, and proceed. |
Method | writable |
Most of the time we don't want to check for writability. |