detect thread status

add API params
This commit is contained in:
BreakWa11 2016-06-03 20:56:59 +08:00
parent 82ffa15a56
commit 91576d1e08
5 changed files with 29 additions and 17 deletions

View file

@ -64,8 +64,8 @@ class ServerPool(object):
self.stat_counter = {}
self.loop = eventloop.EventLoop()
thread = MainThread( (self.loop, self.dns_resolver, self.mgr) )
thread.start()
self.thread = MainThread( (self.loop, self.dns_resolver, self.mgr) )
self.thread.start()
@staticmethod
def get_instance():