Easy Simple Network Library  0.3.7
Functions
ThreadPool

Functions

WorkManagerPtr esnlib::CreateWorkManager (int minworkercount=0, int maxworkercount=0, int workstack=0)
 

Detailed Description

Function Documentation

WorkManagerPtr esnlib::CreateWorkManager ( int  minworkercount = 0,
int  maxworkercount = 0,
int  workstack = 0 
)

Create a thread pool

Parameters
minworkercountThe minimum number of the threads ("0" means default)
maxworkercountThe maximum number of the threads ("0" means default)
workstackEvery thread's working stack size (in byte, "0" means default)
Returns
The pointer of the thread pool