mirror of
https://github.com/JGRennison/OpenTTD-patches.git
synced 2024-11-17 21:25:40 +00:00
(svn r12916) -Fix: let ThreadObject_pthread::IsRunning() behave the same way as ThreadObject_Win32::IsRunning() does
This commit is contained in:
parent
dd00683a46
commit
868c17a175
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user