Skip to content

Commit f7259df

Browse files
authored
Merge pull request #135 from kalibera/clang-yield
Tweak to build with clang on Windows.
2 parents 91b9815 + 0cd99a8 commit f7259df

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

ChangeLog

+5
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
2024-02-12 Tomas Kalibera <[email protected]>
2+
3+
* inst/include/unsupported/Eigen/CXX11/src/ThreadPool/ThreadYield.h:
4+
Support clang on Windows by including 'sched.h' header
5+
16
2023-11-01 Dirk Eddelbuettel <[email protected]>
27

38
* DESCRIPTION (Version, Date): CRAN Release 0.3.3.9.4

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)