Returns true if state was updated.
| 311 | |
| 312 | // Returns true if state was updated. |
| 313 | bool TupleCacheMgr::UpdateState(TupleCacheMgr::Handle* handle, |
| 314 | TupleCacheState requiredState, TupleCacheState newState) { |
| 315 | uint8_t* data = getHandleData(cache_.get(), handle); |
| 316 | return reinterpret_cast<TupleCacheEntry*>(data)-> |
| 317 | state.compare_exchange_strong(requiredState, newState); |
| 318 | } |
| 319 | |
| 320 | size_t TupleCacheMgr::GetCharge(TupleCacheMgr::Handle* handle) const { |
| 321 | uint8_t* data = getHandleData(cache_.get(), handle); |
nothing calls this directly
no test coverage detected