mirror of
https://gitlab.com/libeigen/eigen.git
synced 2025-09-12 09:23:12 +08:00
Worked around the lack of a rand_r function on windows systems
This commit is contained in:
parent
e4fe611e2c
commit
5fbcfe5eb4
@ -13,6 +13,15 @@
|
||||
#include "main.h"
|
||||
#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()
|
||||
{
|
||||
RunQueue<int, 4> q;
|
||||
|
Loading…
x
Reference in New Issue
Block a user