mirror of
https://gitlab.com/libeigen/eigen.git
synced 2025-03-07 18:27:40 +08:00
Worked around the lack of a rand_r function on windows systems
This commit is contained in:
parent
5fbcfe5eb4
commit
84543c8be2
@ -12,6 +12,14 @@
|
|||||||
#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
|
||||||
|
|
||||||
static void test_basic_eventcount()
|
static void test_basic_eventcount()
|
||||||
{
|
{
|
||||||
std::vector<EventCount::Waiter> waiters(1);
|
std::vector<EventCount::Waiter> waiters(1);
|
||||||
|
Loading…
Reference in New Issue
Block a user