| 21 | namespace vvl { |
| 22 | |
| 23 | void PhysicalDevice::SetCallState(Func func, CallState new_state) { |
| 24 | WriteLockGuard guard(call_state_lock_); |
| 25 | auto result = call_state_.emplace(func, new_state); |
| 26 | if (!result.second) { |
| 27 | if (result.first->second < new_state) { |
| 28 | result.first->second = new_state; |
| 29 | } |
| 30 | } |
| 31 | } |
| 32 | |
| 33 | void PhysicalDevice::SetCallState(Func func, bool has_ptr) { |
| 34 | CallState new_state = has_ptr ? CallState::QueryDetails : CallState::QueryCount; |
no test coverage detected