threadpool 7

来源:互联网 发布:伊宁企业网站怎么优化 编辑:程序博客网 时间:2024/05/02 05:16

     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'

原创粉丝点击