Proud::CThreadPool Class Referenceabstract

Public Member Functions

virtual void SetDesiredThreadCount (int threadCount)=0
 
virtual void Process (int timeoutMs)=0
 

Static Public Member Functions

static CThreadPoolCreate (IThreadPoolEvent *eventSink, int threadCount)
 

Detailed Description

This is thread pool object for server-sided host module(CNetServer,CLanServer,CLanClient)

Please refer to Share Thread Pool that has same host module in a server. for more detail.

사용법

  • tp = CThreadPool.Create();
  • tp.SetEventSink(...); // (optinal)
  • tp.SetThreadCount(n); // n = 0~512
  • NC,NS,LC,LS에서 tp를 변수로 참조
  • delete tp;

TODO: 상기 주석 다듬은 후 다국어화해야!

Member Function Documentation

static CThreadPool* Proud::CThreadPool::Create ( IThreadPoolEvent eventSink,
int  threadCount 
)
static

Creates ThreadPool for server communications