Skip to content

Commit

Permalink
Merge pull request #135 from kalibera/clang-yield
Browse files Browse the repository at this point in the history
Tweak to build with clang on Windows.
  • Loading branch information
eddelbuettel authored Feb 12, 2024
2 parents 91b9815 + 0cd99a8 commit f7259df
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
5 changes: 5 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
2024-02-12 Tomas Kalibera <[email protected]>

* inst/include/unsupported/Eigen/CXX11/src/ThreadPool/ThreadYield.h:
Support clang on Windows by including 'sched.h' header

2023-11-01 Dirk Eddelbuettel <[email protected]>

* DESCRIPTION (Version, Date): CRAN Release 0.3.3.9.4
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@

// Try to come up with a portable way to yield
#if EIGEN_COMP_GNUC && EIGEN_GNUC_AT_MOST(4, 7)
#include <sched.h>
#define EIGEN_THREAD_YIELD() sched_yield()
#else
#define EIGEN_THREAD_YIELD() std::this_thread::yield()
Expand Down

0 comments on commit f7259df

Please sign in to comment.