From: Lars Op den Kamp Date: Thu, 2 Feb 2012 01:37:09 +0000 (+0100) Subject: linux: fix compilation X-Git-Tag: upstream/2.2.0~1^2~36^2~20 X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=97cd34d8145e0cecf05e7a348b2a37614f2a9060;p=deb_libcec.git linux: fix compilation --- diff --git a/src/lib/platform/posix/os-threads.h b/src/lib/platform/posix/os-threads.h index f417b12..48e1e35 100644 --- a/src/lib/platform/posix/os-threads.h +++ b/src/lib/platform/posix/os-threads.h @@ -95,12 +95,12 @@ namespace PLATFORM bool Wait(mutex_t &mutex, uint32_t iTimeoutMs) { sched_yield(); - if (iTimeout > 0) + if (iTimeoutMs > 0) { - struct timespec timeout = GetAbsTime(iTimeout); - return (pthread_cond_timedwait(&cond, &mutex, &timeout) == 0); + struct timespec timeout = GetAbsTime(iTimeoutMs); + return (pthread_cond_timedwait(&m_condition, &mutex, &timeout) == 0); } - return (pthread_cond_wait(&cond, &mutex) == 0); + return (pthread_cond_wait(&m_condition, &mutex) == 0); } pthread_cond_t m_condition;