MCPcopy Create free account
hub / github.com/Tencent/phxsql / SetConfig

Method SetConfig

phxsqlclient/utils/leakybucket.cpp:180–190  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

178}
179
180void MmapLeakyBucket::SetConfig(Config_t &config) {
181 if (NULL == m_poLock)
182 return;
183
184 m_poLock->WriteLockW(0);
185
186 m_tConfig.iBucketSize = config.iBucketSize;
187 m_tConfig.tRefillPeriod = config.tRefillPeriod;
188
189 m_poLock->Unlock(0);
190}
191
192}
193

Callers

nothing calls this directly

Calls 2

WriteLockWMethod · 0.45
UnlockMethod · 0.45

Tested by

no test coverage detected