bug-commoncpp
[Top][All Lists]
Advanced

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

Thread::isRunning() - bug?


From: Christoph Schlenker
Subject: Thread::isRunning() - bug?
Date: 20 Feb 2002 11:31:05 +0100

Hi,

we have a hard to reproduce bug with the isRunning-Function in Thread.
Sometimes(!), when we create and delete "a lot of" (200) threads "very
fast" (asap), the isRunning()-function returns true, even if the
Final()-Function is called already.

(Our config.h makes the _tid not volatile, but that seems not the
problem.)

As a workaround we included our own isRunning2()-Function and a (non
volatile bool) in our derived Thread and it works fine. (isR2 = true in
Run(), isR2 = false in Final().

We're using gcc2.96, Linux-Kernel 2.4.7, CommonC++ 1.9.3.

Anyone else with that behaviour?

\Christoph






reply via email to

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