bug-commoncpp
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: thread handle leak under windows.


From: David Sugar
Subject: Re: thread handle leak under windows.
Date: Sat, 20 Dec 2003 06:18:56 -0500
User-agent: KMail/1.5.3

This one is a bit strange, but I am experimenting with this in 1.1 sf cvs...

On Friday 19 December 2003 10:35 am, Keith Thornton wrote:
> 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
>
>
>
>
> _______________________________________________
> Bug-commoncpp mailing list
> address@hidden
> http://mail.gnu.org/mailman/listinfo/bug-commoncpp





reply via email to

[Prev in Thread] Current Thread [Next in Thread]