[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
thread handle leak under windows.
From: |
Keith Thornton |
Subject: |
thread handle leak under windows. |
Date: |
Fri, 19 Dec 2003 16:35:55 +0100 |
commoncpp2-1.0.13
The thread class leaks threads under windows.
in thread.cpp, in void Thread::terminate(void)
currently reads
if (!priv->_tid || isThread())
return;
should read
if (!priv->_tid || isThread())
{
if( priv->_hThread)
{
BOOL b = ::CloseHandle( priv->_hThread);
priv->_hThread = NULL;
}
return;
}
best wishes
- thread handle leak under windows.,
Keith Thornton <=