Changeset 41156 in webkit for trunk/JavaScriptCore/wtf/ThreadingQt.cpp
- Timestamp:
- Feb 23, 2009, 2:37:17 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/wtf/ThreadingQt.cpp
r41013 r41156 243 243 return false; 244 244 245 // Time is too far in the future (and would overflow unsigned long) - wait forever. 246 if (absoluteTime - currentTime > static_cast<double>(INT_MAX) / 1000.0) { 247 wait(mutex); 248 return true; 249 } 250 245 251 double intervalMilliseconds = (absoluteTime - currentTime) * 1000.0; 246 // Qt defines wait for up to ULONG_MAX milliseconds.247 if (intervalMilliseconds >= ULONG_MAX)248 intervalMilliseconds = ULONG_MAX;249 250 252 return m_condition->wait(mutex.impl(), static_cast<unsigned long>(intervalMilliseconds)); 251 253 }
Note:
See TracChangeset
for help on using the changeset viewer.