| 178 | } |
| 179 | |
| 180 | void 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 |
nothing calls this directly
no test coverage detected