def get_host():
if core_type == 'thread':
current = current_thread()
else:
current = getcurrent()
for host in hosts.values():
if current in host.threads.keys():
return host
elif current in host.pthreads.keys():
return host
return main_host
评论列表
文章目录