Bug#410219: threads: isRunning() always returns true
Stephan Suerken
stephan.suerken at 1und1.de
Thu Feb 8 16:40:21 UTC 2007
Package: libcommoncpp2-1.5-0
Severity: normal
Hi,
the ost::Thread::isRunning() method seems to always return true, as the
simple code below shows by not coming back...
This applies to 1.5.1-4 (etch), 1.5.3-1 (sid).
A known working upstream version is 1.0.13.
MfG,
Stephan
Test code:
---
#include <iostream>
#include <cc++/thread.h>
class MyThread: public ost::PosixThread
{
public:
void run()
{
std::cout << "Thread run." << std::endl;
}
};
int main()
{
MyThread myThread;
myThread.start();
while (myThread.isRunning())
{
std::cout << "Thread still running." << std::endl;
MyThread::sleep(1000);
}
}
---
-- System Information:
Debian Release: 4.0
APT prefers testing
APT policy: (500, 'testing')
Architecture: i386 (i686)
Shell: /bin/sh linked to /bin/bash
Kernel: Linux 2.6.18-3-k7
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8)
More information about the Pkg-voip-maintainers
mailing list