[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Thread::detach bug
From: |
Federico Montesino Pouzols |
Subject: |
Re: Thread::detach bug |
Date: |
Thu, 9 Jan 2003 13:34:29 +0100 |
User-agent: |
Mutt/1.4i |
Yes, I think this code could be more robust if instead of
calling pthread_create and then pthread_detach, it set the detach
attribute of the thread before pthread_create.
On Wed, Jan 08, 2003 at 02:02:22PM +0200, Ittay Freiman wrote:
> if i call Thread::detach, the thread is created in joinable mode, and a
> line after pthread_detach is called. however, if the threads are short
> lived, or the system is loaded, this line may execute after the thread
> has finished its run, destroyed itself (in final(), as recommended in
> the documentation) and therefore its resources are lost.
>
> --
> Ittay Freiman <address@hidden>
> Qlusters Inc.
>
>
>
> _______________________________________________
> Bug-commoncpp mailing list
> address@hidden
> http://mail.gnu.org/mailman/listinfo/bug-commoncpp
- Thread::detach bug, Ittay Freiman, 2003/01/08
- Re: Thread::detach bug,
Federico Montesino Pouzols <=