def threading_cleanup(nb_threads):
if not _thread:
return
_MAX_COUNT = 10
for count in range(_MAX_COUNT):
n = _thread._count()
if n == nb_threads:
break
time.sleep(0.1)
# XXX print a warning in case of failure?
评论列表
文章目录