MCPcopy Create free account
hub / github.com/apache/brpc / hide

Method hide

src/bvar/variable.cpp:187–201  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

185}
186
187bool Variable::hide() {
188 if (_name.empty()) {
189 return false;
190 }
191 VarMapWithLock& m = get_var_map(_name);
192 BAIDU_SCOPED_LOCK(m.mutex);
193 VarEntry* entry = m.seek(_name);
194 if (entry) {
195 CHECK_EQ(1UL, m.erase(_name));
196 } else {
197 CHECK(false) << "`" << _name << "' must exist";
198 }
199 _name.clear();
200 return true;
201}
202
203void Variable::list_exposed(std::vector<std::string>* names,
204 DisplayFilter display_filter) {

Callers 7

TEST_FFunction · 0.45
TEST_FFunction · 0.45
TEST_FFunction · 0.45
~SharedLoadBalancerMethod · 0.45
~TaskControlMethod · 0.45
~MultiDimensionMethod · 0.45
operator()Method · 0.45

Calls 4

emptyMethod · 0.45
seekMethod · 0.45
eraseMethod · 0.45
clearMethod · 0.45

Tested by 3

TEST_FFunction · 0.36
TEST_FFunction · 0.36
TEST_FFunction · 0.36