Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(931)

Unified Diff: tests/AtomicTest.cpp

Issue 1408213005: Remove SkThread::setProcessorAffinity() (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: gAdds Created 5 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/utils/SkThreadUtils_win.cpp ('k') | tests/RefCntTest.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/AtomicTest.cpp
diff --git a/tests/AtomicTest.cpp b/tests/AtomicTest.cpp
index e9db3f093dd2271155887909113b8a8a60a4ee47..530fba79d55129d6f599b67156b9bf59549a100c 100644
--- a/tests/AtomicTest.cpp
+++ b/tests/AtomicTest.cpp
@@ -13,15 +13,14 @@
struct AddInfo {
int32_t valueToAdd;
int timesToAdd;
- unsigned int processorAffinity;
};
static int32_t base = 0;
static AddInfo gAdds[] = {
- { 3, 100, 23 },
- { 2, 200, 2 },
- { 7, 150, 17 },
+ { 3, 100 },
+ { 2, 200 },
+ { 7, 150 },
};
static void addABunchOfTimes(void* data) {
@@ -40,7 +39,6 @@ DEF_TEST(Atomic, reporter) {
// Start the threads
for (size_t i = 0; i < SK_ARRAY_COUNT(gAdds); i++) {
threads[i] = new SkThread(addABunchOfTimes, &gAdds[i]);
- threads[i]->setProcessorAffinity(gAdds[i].processorAffinity);
threads[i]->start();
}
« no previous file with comments | « src/utils/SkThreadUtils_win.cpp ('k') | tests/RefCntTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698