(svn r12916) -Fix: let ThreadObject_pthread::IsRunning() behave the same way as ThreadObject_Win32::IsRunning() does

This commit is contained in:
smatz 2008-04-28 23:48:45 +00:00
parent dd00683a46
commit 868c17a175

View File

@ -63,7 +63,9 @@ public:
/* virtual */ bool IsRunning()
{
return m_thr != 0;
int sval;
sem_getvalue(&m_sem_stop, &sval);
return sval == 0;
}
/* virtual */ bool WaitForStop()