threadpool 8
来源:互联网 发布:伊宁企业网站怎么优化 编辑:程序博客网 时间:2024/04/27 19:22
def start_thread(self, wait=True, target=None, *args, **kwargs):
print 'start_thread'
# thrd = PoolThread()
rtn = False
with self.__condition:
if (self.__freeThread <= 0):
if wait:
self.__condition.wait()
else:
return False
for thrd in self.__threadList:
if thrd.is_running():
continue
if target:
thrd.reset_target(target, *args, **kwargs)
thrd.start(False)
rtn = True
break
print 'start_thread end'
return rtn
- threadpool 8
- threadpool
- ThreadPool
- threadPool
- threadpool
- ThreadPool
- threadpool
- threadpool
- ThreadPool
- ThreadPool
- ThreadPool
- ThreadPool
- ThreadPool
- ThreadPool
- ThreadPool
- threadpool
- ThreadPool
- ThreadPool
- VB.NET 连接数据库
- threadpool 5
- 怎么样处理横屏事件
- threadpool 6
- threadpool 7
- threadpool 8
- threadpool 9
- 10 Free Server & Network Monitoring Tools that Kick Ass
- Win32 调试接口设计与实现浅析
- sqlhelper for sql
- c#数据结构
- threadpool 10
- zlib2gzip
- 数据结构数组(1)