detect thread status
add API params
This commit is contained in:
parent
82ffa15a56
commit
91576d1e08
5 changed files with 29 additions and 17 deletions
|
@ -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():
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue