MCPcopy Create free account
hub / github.com/abess-team/abess / rand_reentrant

Function rand_reentrant

python/include/unsupported/test/cxx11_runqueue.cpp:19–26  ·  view source on GitHub ↗

Visual studio doesn't implement a rand_r() function since its implementation of rand() is already thread safe

Source from the content-addressed store, hash-verified

17// Visual studio doesn't implement a rand_r() function since its
18// implementation of rand() is already thread safe
19int rand_reentrant(unsigned int* s) {
20#ifdef EIGEN_COMP_MSVC_STRICT
21 EIGEN_UNUSED_VARIABLE(s);
22 return rand();
23#else
24 return rand_r(s);
25#endif
26}
27
28void test_basic_runqueue()
29{

Callers 1

test_empty_runqueueFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected