--- innwebd/thread_pool.cpp 2004/07/04 22:49:03 1.6 +++ innwebd/thread_pool.cpp 2008/04/11 17:14:49 1.10 @@ -1,14 +1,10 @@ /*******************************************************/ /* */ /* LeafOK Innbbsd */ -/* Copyright (C) LeafOK.com, 2003-2004 */ /* */ -/* Programmed by Leaf */ -/* E-mail:leaflet@leafok.com QQ:6049044 */ +/* Copyright (C) LeafOK.com, 2003-2008 */ /* */ -/* http://bbs.leafok.com */ -/* http://bbs.leafok.net */ -/* http://bbs.fenglin.info */ +/* http://www.leafok.com */ /* */ /*******************************************************/ @@ -153,9 +149,9 @@ int thread_pool::RemoveThread(ULONG ulTh } -int thread_pool::SetThreadStatus(ULONG ulThreadd, int uStatus) +int thread_pool::SetThreadStatus(ULONG ulThreadId, int uStatus) { - UINTT i; + UINT i; if (this->uThreadCount <= 0) { @@ -229,7 +225,7 @@ DWORD thread_pool::KillDeadThread(LPVOID // Remove dead thread from thread pool if (p->RemoveThread(ulThreadId) != 0) { - syslog << logfile::log_head << "Unregister thread ... Failed" << endl; + syslog << logfile::log_head << "Unregister thread (" << ulThreadId << ") ... Failed" << endl; } // Kill dead thread if ((hThread = OpenThread(THREAD_TERMINATE,FALSE,ulThreadId)) == NULL) @@ -240,11 +236,11 @@ DWORD thread_pool::KillDeadThread(LPVOID { if (TerminateThread(hThread,-1)) { - syslog << logfile::log_head << "Terminate dead thread ... OK" << endl; + syslog << logfile::log_head << "Terminate dead thread (" << ulThreadId << ") ... OK" << endl; } else { - syslog << logfile::log_head << "Terminate dead thread ... Failed" << endl; + syslog << logfile::log_head << "Terminate dead thread (" << ulThreadId << ") ... Failed" << endl; } CloseHandle(hThread); } @@ -363,11 +359,11 @@ int thread_pool::KillAllThread(void) { if (TerminateThread(hThread,-1)) { - syslog << logfile::log_head << "Terminate all thread ... OK" << endl; + syslog << logfile::log_head << "Terminate all thread (" << ulThreadId << ") ... OK" << endl; } else { - syslog << logfile::log_head << "Terminate all thread ... Failed" << endl; + syslog << logfile::log_head << "Terminate all thread (" << ulThreadId << ") ... Failed" << endl; } CloseHandle(hThread); }