| 153 |
} |
} |
| 154 |
|
|
| 155 |
|
|
| 156 |
int thread_pool::SetThreadStatus(ULONG ulThreadd, int uStatus) |
int thread_pool::SetThreadStatus(ULONG ulThreadId, int uStatus) |
| 157 |
{ |
{ |
| 158 |
UINTT i; |
UINT i; |
| 159 |
|
|
| 160 |
if (this->uThreadCount <= 0) |
if (this->uThreadCount <= 0) |
| 161 |
{ |
{ |
| 275 |
this->bTerminateThreadKiller = false; |
this->bTerminateThreadKiller = false; |
| 276 |
if (hThreadCurrent = CreateThread(NULL,0,(LPTHREAD_START_ROUTINE)thread_pool::KillDeadThread,(LPVOID)this,0,&ulThreadId)) |
if (hThreadCurrent = CreateThread(NULL,0,(LPTHREAD_START_ROUTINE)thread_pool::KillDeadThread,(LPVOID)this,0,&ulThreadId)) |
| 277 |
{ |
{ |
| 278 |
|
CloseHandle(hThreadCurrent); |
| 279 |
syslog << logfile::log_head << "Create killer thread ... OK" << endl; |
syslog << logfile::log_head << "Create killer thread ... OK" << endl; |
| 280 |
} |
} |
| 281 |
else |
else |