bayonne-devel
[Top][All Lists]
Advanced

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

Re: [Bayonne-devel] SEGFAULT on Thread isRunning(), in Common C++


From: Stas Oskin
Subject: Re: [Bayonne-devel] SEGFAULT on Thread isRunning(), in Common C++
Date: Fri, 1 Sep 2006 19:44:52 +0300

Hi.

Version 1.3.23-1.fc4, installed via APT on Fedora Core 4, 32-bit.

I'm not familiar with priv, but apparently the moment the thread has exited
the run method, and passed through
the final method, any isRunning() call on him leads to a SEGFAULT. I
think that the correct behaviour should be simply to return false?

Thanks,
Stas.

On 8/31/06, David Sugar <address@hidden> wrote:

Which version of Common C++?  The isRunning method should check if priv
is != NULL and return false on that first if it is...

Stas Oskin wrote:
> Hi.
>
> When the thread has exited from his run function, but is not deleted
yet,
> calling isRunning() for this thread results in a SEGFAULT.
> This in contrary to what the API says: "Verifies if the thread is still
> running or has already been terminated but not yet deleted", so the
result
> should be false, rather then SEGFAULT.
>
> I need this functionality in order to implement some sort of a watchdog,
> which will allow to detect non-running threads.
>
> Any help on this will be very appreciated.
> Stas.
> _______________________________________________
> Bayonne-devel mailing list
> address@hidden
> http://lists.gnu.org/mailman/listinfo/bayonne-devel





reply via email to

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