daemon.AsyncAwaker
authorGuido Trotter <ultrotter@google.com>
Tue, 18 May 2010 12:20:46 +0000 (13:20 +0100)
committerGuido Trotter <ultrotter@google.com>
Thu, 3 Jun 2010 10:48:21 +0000 (11:48 +0100)
commit495ba852c42b180d00f3492b7c5b474894a6fbfb
tree75222de40dd41ef71b5880aca66ab7fd8309d3b9
parentcdd7f90010bd4047301610a47444a31b25acea76
daemon.AsyncAwaker

This new asyncore dispatcher can be used to force a thread running the
asyncore loop to awake from the select, by signaling it on one of its
selected sockets.

Signed-off-by: Guido Trotter <ultrotter@google.com>
Reviewed-by: Michael Hanselmann <hansmi@google.com>
lib/daemon.py
test/ganeti.daemon_unittest.py