Title: [188284] trunk/Tools
- Revision
- 188284
- Author
- [email protected]
- Date
- 2015-08-11 13:20:52 -0700 (Tue, 11 Aug 2015)
Log Message
Unreviewed build fix after r188280.
* TestWebKitAPI/Tests/WTF/ParkingLot.cpp:
Include DataLog.h, and usleep is not available on Windows, so I used what I think is the c++11 equivalent.
Modified Paths
Diff
Modified: trunk/Tools/ChangeLog (188283 => 188284)
--- trunk/Tools/ChangeLog 2015-08-11 20:15:16 UTC (rev 188283)
+++ trunk/Tools/ChangeLog 2015-08-11 20:20:52 UTC (rev 188284)
@@ -1,3 +1,10 @@
+2015-08-11 Alex Christensen <[email protected]>
+
+ Unreviewed build fix after r188280.
+
+ * TestWebKitAPI/Tests/WTF/ParkingLot.cpp:
+ Include DataLog.h, and usleep is not available on Windows, so I used what I think is the c++11 equivalent.
+
2015-08-10 Filip Pizlo <[email protected]>
WTF should have a ParkingLot for parking sleeping threads, so that locks can fit in 1.6 bits
Modified: trunk/Tools/TestWebKitAPI/Tests/WTF/ParkingLot.cpp (188283 => 188284)
--- trunk/Tools/TestWebKitAPI/Tests/WTF/ParkingLot.cpp 2015-08-11 20:15:16 UTC (rev 188283)
+++ trunk/Tools/TestWebKitAPI/Tests/WTF/ParkingLot.cpp 2015-08-11 20:20:52 UTC (rev 188284)
@@ -26,6 +26,7 @@
#include "config.h"
#include <condition_variable>
#include <mutex>
+#include <wtf/DataLog.h>
#include <wtf/HashSet.h>
#include <wtf/ListDump.h>
#include <wtf/ParkingLot.h>
@@ -190,7 +191,7 @@
tests[latchIndex].initialize(numThreads);
for (unsigned unparkIndex = 0; unparkIndex < numSingleUnparks; ++unparkIndex) {
- usleep(delay);
+ std::this_thread::sleep_for(std::chrono::microseconds(delay));
for (unsigned latchIndex = numLatches; latchIndex--;)
tests[latchIndex].unparkOne(unparkIndex);
}
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes