diff options
author | Rasmus Munk Larsen <rmlarsen@google.com> | 2020-12-02 11:04:04 -0800 |
---|---|---|
committer | Rasmus Munk Larsen <rmlarsen@google.com> | 2020-12-02 11:04:04 -0800 |
commit | 71c85df4c1ce4efa41bb4adc8e9cb224c3ca9a2d (patch) | |
tree | c0f768dccd1dbca1fe17621bf8638c9102b8f170 /unsupported/test/cxx11_non_blocking_thread_pool.cpp | |
parent | 70fbcf82ed0a95b27ee68e20199a4e8e1e913268 (diff) |
Clean up the Tensor header and get rid of the EIGEN_SLEEP macro.
Diffstat (limited to 'unsupported/test/cxx11_non_blocking_thread_pool.cpp')
-rw-r--r-- | unsupported/test/cxx11_non_blocking_thread_pool.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/unsupported/test/cxx11_non_blocking_thread_pool.cpp b/unsupported/test/cxx11_non_blocking_thread_pool.cpp index 90b330fdc..993ee1789 100644 --- a/unsupported/test/cxx11_non_blocking_thread_pool.cpp +++ b/unsupported/test/cxx11_non_blocking_thread_pool.cpp @@ -109,7 +109,9 @@ static void test_cancel() // Schedule a large number of closure that each sleeps for one second. This // will keep the thread pool busy for much longer than the default test timeout. for (int i = 0; i < 1000; ++i) { - tp.Schedule([]() { EIGEN_SLEEP(2000); }); + tp.Schedule([]() { + std::this_thread::sleep_for(std::chrono::milliseconds(2000)); + }); } // Cancel the processing of all the closures that are still pending. |