伪代码:
void * CALLBACK WorkThread( void * pParam)
{
}
HANDLE h = ThreadPool_Creat(初始线程数,最大线程数);
if(h)
{
ThreadPool_Work(h,WorkThread,参数);
}
ThreadPool_Destroy(h);
伪代码:
void * CALLBACK WorkThread( void * pParam)
{
}
HANDLE h = ThreadPool_Creat(初始线程数,最大线程数);
if(h)
{
ThreadPool_Work(h,WorkThread,参数);
}
ThreadPool_Destroy(h);