MCPcopy Create free account
hub / github.com/catboost/catboost / with_lock

Function with_lock

catboost/cuda/gpu_data/gpu_binarization_helpers.cpp:38–43  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

36 TVector<float> borders;
37 bool hasBorders = false;
38 with_lock (Lock) {
39 if (FeaturesManager.HasBorders(featureId)) {
40 borders = FeaturesManager.GetBorders(featureId);
41 hasBorders = true;
42 }
43 }
44 if (!hasBorders) {
45 borders = ComputeBorders(binarizationDescription, floatFeature, stream);
46 with_lock (Lock) {

Callers

nothing calls this directly

Calls 3

HasBordersMethod · 0.45
GetBordersMethod · 0.45
SetBordersMethod · 0.45

Tested by

no test coverage detected