def __notify_free_thread(self, isRunning):
print '__notify_free_thread'
with self.__condition:
print 'enter ', isRunning
if isRunning:
self.__freeThread -= 1
else:
self.__freeThread += 1
self.__condition.notify()
print '__notify_free_thread end'
threadpool 7
最新推荐文章于 2024-06-05 17:26:25 发布