fix datarace warning
@@ -419,15 +419,13 @@ public:
}
NCB::NModelEvaluation::TConstModelEvaluatorPtr GetCurrentEvaluator() const {
- if (!Evaluator) {
with_lock(CurrentEvaluatorLock) {
if (!Evaluator) {
Evaluator = CreateEvaluator(FormulaEvaluatorType);
}
- }
- }
return Evaluator;
}
+ }
bool operator==(const TFullModel& other) const {
return *ObliviousTrees == *other.ObliviousTrees;
