return 0;
}
DWORD CThreadPool::GetRunThreadCount()
{
return m_qRun.size();
}
CThreadPool::spThread CThreadPool::GetRunThreadItem(int nIndex)
{
return m_qRun[nIndex];
}
DWORD CThreadPool::GetWaitThreadCount()
{
return m_qWait.size();
}
CThreadPool::spThread CThreadPool::GetWaitThreadItem(int nIndex)
{
return m_qWait[nIndex];
}
DWORD WINAPI t(LPVOID l)
{
cout<
}
{
cout<<"!!!"<
}
void call(UINT m,CThreadPool::spThread sp)
{
if(m==WM_THREADSTART)
{
// cout<<1<
}
main()
{
CThreadPool c;
c.Init(0,5);
DWORD i=1000;
while(i--)
{
c.AddTask(t,0,0);
}
c.AddTask(t1,0,1);
getchar();
}