We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 24a7997 commit 79befb1Copy full SHA for 79befb1
deprecated_test/eval.cc
@@ -23,6 +23,7 @@
23
#include <map>
24
#include <sstream>
25
#include <vector>
26
+#include <random>
27
28
#include "../fncas/fncas.h"
29
@@ -54,7 +55,7 @@ struct action {
54
55
limit_seconds = quantity < 0 ? -quantity : 1e12;
56
this->sout = sout;
57
this->serr = serr;
- do_run();
58
+ return do_run();
59
}
60
virtual bool do_run() = 0;
61
};
fncas/node.h
@@ -38,6 +38,10 @@
38
39
#include "base.h"
40
41
+#ifndef BRICKS_HAS_THREAD_LOCAL
42
+#include <pthread.h> // To emulate `thread_local` via `pthread_*`.
43
+#endif
44
+
45
// Admittedly, `sqr()` is kind of helpful in machine learning. -- D.K.
46
inline fncas::fncas_value_type sqr(fncas::fncas_value_type x) { return x * x; }
47
0 commit comments