8
0
mirror of https://github.com/FirebirdSQL/firebird.git synced 2025-01-24 01:23:03 +01:00
This commit is contained in:
robocop 2009-09-02 09:04:10 +00:00
parent d4a5f39021
commit 0f671fc249

View File

@ -62,16 +62,16 @@ private:
if (thread != currTID) if (thread != currTID)
{ {
HANDLE hThread = OpenThread(THREAD_QUERY_INFORMATION, false, thread); HANDLE hThread = OpenThread(THREAD_QUERY_INFORMATION, false, thread);
// commented exit code check - looks like OS does not return handle // commented exit code check - looks like OS does not return handle
// for already exited thread // for already exited thread
// DWORD exitCode = STILL_ACTIVE; //DWORD exitCode = STILL_ACTIVE;
if (hThread) if (hThread)
{ {
// GetExitCodeThread(hThread, &exitCode); //GetExitCodeThread(hThread, &exitCode);
CloseHandle(hThread); CloseHandle(hThread);
} }
// if ((!hThread) || (exitCode != STILL_ACTIVE)) //if ((!hThread) || (exitCode != STILL_ACTIVE))
if (!hThread) if (!hThread)
{ {
// Thread does not exist any more // Thread does not exist any more
@ -89,7 +89,7 @@ private:
Firebird::Mutex mutex; Firebird::Mutex mutex;
public: public:
StringsBuffer(Firebird::MemoryPool& p) : processBuffer(p) { } explicit StringsBuffer(Firebird::MemoryPool& p) : processBuffer(p) { }
~StringsBuffer() ~StringsBuffer()
{ {