mark static
parent
faabe418b2
commit
9199b76648
6
main.cc
6
main.cc
|
@ -32,10 +32,10 @@ struct Rule {
|
||||||
~Rule() { cscript::bcode_unref(func); }
|
~Rule() { cscript::bcode_unref(func); }
|
||||||
};
|
};
|
||||||
|
|
||||||
Vector<Rule> rules;
|
static Vector<Rule> rules;
|
||||||
|
|
||||||
struct RuleCounter;
|
struct RuleCounter;
|
||||||
Vector<RuleCounter *> counters;
|
static Vector<RuleCounter *> counters;
|
||||||
|
|
||||||
struct RuleCounter {
|
struct RuleCounter {
|
||||||
RuleCounter(): cond(), mtx(), counter(0), result(0) {
|
RuleCounter(): cond(), mtx(), counter(0), result(0) {
|
||||||
|
@ -81,7 +81,7 @@ struct RuleCounter {
|
||||||
ostd::AtomicInt result;
|
ostd::AtomicInt result;
|
||||||
};
|
};
|
||||||
|
|
||||||
ThreadPool tpool;
|
static ThreadPool tpool;
|
||||||
|
|
||||||
/* check funcs */
|
/* check funcs */
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue