mirror of
https://gitlab.com/libeigen/eigen.git
synced 2026-04-10 11:34:33 +08:00
Worked around the lack of a rand_r function on windows systems
This commit is contained in:
@@ -13,6 +13,15 @@
|
|||||||
#include "main.h"
|
#include "main.h"
|
||||||
#include <Eigen/CXX11/ThreadPool>
|
#include <Eigen/CXX11/ThreadPool>
|
||||||
|
|
||||||
|
|
||||||
|
#ifdef EIGEN_COMP_MSVC_STRICT
|
||||||
|
// Visual studio doesn't implementan rand_r() function since its
|
||||||
|
// implementation of rand()is already thread safe
|
||||||
|
int rand_r(unsigned int*) {
|
||||||
|
return rand();
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
void test_basic_runqueue()
|
void test_basic_runqueue()
|
||||||
{
|
{
|
||||||
RunQueue<int, 4> q;
|
RunQueue<int, 4> q;
|
||||||
|
|||||||
Reference in New Issue
Block a user