Changeset 35598 in webkit for trunk/JavaScriptCore/wtf/ThreadingQt.cpp
- Timestamp:
- Aug 6, 2008, 5:11:29 AM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/wtf/ThreadingQt.cpp
r35432 r35598 214 214 } 215 215 216 bool ThreadCondition::timedWait(Mutex& mutex, double interval) 217 { 218 return m_condition->wait(mutex.impl(), interval); 216 bool ThreadCondition::timedWait(Mutex& mutex, double secondsToWait) 217 { 218 if (secondsToWait < 0.0) { 219 wait(mutex); 220 return true; 221 } 222 223 unsigned long millisecondsToWait = static_cast<unsigned long>(secondsToWait * 1000.0); 224 return m_condition->wait(mutex.impl(), millisecondsToWait); 219 225 } 220 226
Note:
See TracChangeset
for help on using the changeset viewer.