Skip to content

Commit 8bfeae0

Browse files
committed
Tweak to build with clang on Windows.
1 parent 91b9815 commit 8bfeae0

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

inst/include/unsupported/Eigen/CXX11/src/ThreadPool/ThreadYield.h

+1
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212

1313
// Try to come up with a portable way to yield
1414
#if EIGEN_COMP_GNUC && EIGEN_GNUC_AT_MOST(4, 7)
15+
#include <sched.h>
1516
#define EIGEN_THREAD_YIELD() sched_yield()
1617
#else
1718
#define EIGEN_THREAD_YIELD() std::this_thread::yield()

0 commit comments

Comments
 (0)