repositories
/
deb_libcec.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
win32: sync visual studio project files
[deb_libcec.git]
/
src
/
lib
/
platform
/
threads.cpp
diff --git
a/src/lib/platform/threads.cpp
b/src/lib/platform/threads.cpp
index d8ac5a7b0428df70a810eed5357c117ee100f0cf..8ba391920feb2695326b52ca6e7467f033771dd1 100644
(file)
--- a/
src/lib/platform/threads.cpp
+++ b/
src/lib/platform/threads.cpp
@@
-122,7
+122,7
@@
bool CCondition::Wait(CMutex *mutex, uint32_t iTimeout /* = 0 */)
gettimeofday(&now, NULL);
iTimeout += now.tv_usec / 1000;
abstime.tv_sec = now.tv_sec + (time_t)(iTimeout / 1000);
gettimeofday(&now, NULL);
iTimeout += now.tv_usec / 1000;
abstime.tv_sec = now.tv_sec + (time_t)(iTimeout / 1000);
- abstime.tv_nsec = (
time_t) ( (iTimeout % (uint32_t)1000) * (uint32_t)1
000);
+ abstime.tv_nsec = (
int32_t)((iTimeout % (uint32_t)1000) * (uint32_t)1000
000);
bReturn = (pthread_cond_timedwait(&m_cond, &mutex->m_mutex, &abstime) == 0);
}
else
bReturn = (pthread_cond_timedwait(&m_cond, &mutex->m_mutex, &abstime) == 0);
}
else