Title: [116157] trunk/Source/WTF
- Revision
- 116157
- Author
- [email protected]
- Date
- 2012-05-04 13:13:10 -0700 (Fri, 04 May 2012)
Log Message
[BlackBerry] Implement numberOfProcessorCores() for QNX
https://bugs.webkit.org/show_bug.cgi?id=85638
Patch by Jeff Rogers <[email protected]> on 2012-05-04
Reviewed by Antonio Gomes.
* wtf/NumberOfCores.cpp:
(WTF::numberOfProcessorCores):
Modified Paths
Diff
Modified: trunk/Source/WTF/ChangeLog (116156 => 116157)
--- trunk/Source/WTF/ChangeLog 2012-05-04 20:12:43 UTC (rev 116156)
+++ trunk/Source/WTF/ChangeLog 2012-05-04 20:13:10 UTC (rev 116157)
@@ -1,3 +1,13 @@
+2012-05-04 Jeff Rogers <[email protected]>
+
+ [BlackBerry] Implement numberOfProcessorCores() for QNX
+ https://bugs.webkit.org/show_bug.cgi?id=85638
+
+ Reviewed by Antonio Gomes.
+
+ * wtf/NumberOfCores.cpp:
+ (WTF::numberOfProcessorCores):
+
2012-05-03 Yong Li <[email protected]>
Mutex failure when HashTable is memory moved in debug build
Modified: trunk/Source/WTF/wtf/NumberOfCores.cpp (116156 => 116157)
--- trunk/Source/WTF/wtf/NumberOfCores.cpp 2012-05-04 20:12:43 UTC (rev 116156)
+++ trunk/Source/WTF/wtf/NumberOfCores.cpp 2012-05-04 20:13:10 UTC (rev 116157)
@@ -34,10 +34,14 @@
#include <sys/sysctl.h>
#elif OS(LINUX) || OS(AIX) || OS(SOLARIS)
#include <unistd.h>
-#elif OS(WINDOWS)
+#elif OS(WINDOWS) || OS(QNX)
+#include <wtf/UnusedParam.h>
+#if OS(WINDOWS)
#include <windows.h>
-#include <wtf/UnusedParam.h>
+#elif OS(QNX)
+#include <sys/syspage.h>
#endif
+#endif
namespace WTF {
@@ -69,6 +73,10 @@
GetSystemInfo(&sysInfo);
s_numberOfCores = sysInfo.dwNumberOfProcessors;
+#elif OS(QNX)
+ UNUSED_PARAM(defaultIfUnavailable);
+
+ s_numberOfCores = _syspage_ptr->num_cpu;
#else
s_numberOfCores = defaultIfUnavailable;
#endif
_______________________________________________
webkit-changes mailing list
[email protected]
http://lists.webkit.org/mailman/listinfo.cgi/webkit-changes