Use EIGEN_THREAD_YIELD instead of std::this_thread::yield to make the code more portable.

This commit is contained in:
Benoit Steiner
2016-04-21 08:47:28 -07:00
parent 2dde1b1028
commit 32ffce04fc
2 changed files with 4 additions and 4 deletions

View File

@@ -95,7 +95,7 @@ static void test_stress_eventcount()
ec.Notify(false);
continue;
}
std::this_thread::yield();
EIGEN_THREAD_YIELD();
j--;
}
}));