----------------------------------------------------------------------------- Change the intensity with which this value is polled -----------------------------------------------------------------------------
| 802 | // Change the intensity with which this value is polled |
| 803 | //----------------------------------------------------------------------------- |
| 804 | uint8 Manager::GetPollIntensity |
| 805 | ( |
| 806 | ValueID const &_valueId |
| 807 | ) |
| 808 | { |
| 809 | uint8 intensity = 0; |
| 810 | if( Driver* driver = GetDriver( _valueId.GetHomeId() ) ) |
| 811 | { |
| 812 | LockGuard LG(driver->m_nodeMutex); |
| 813 | if( Value* value = driver->GetValue( _valueId ) ) |
| 814 | { |
| 815 | intensity = value->GetPollIntensity(); |
| 816 | value->Release(); |
| 817 | } else { |
| 818 | OZW_ERROR(OZWException::OZWEXCEPTION_INVALID_VALUEID, "Invalid ValueID passed to GetPollIntensity"); |
| 819 | } |
| 820 | } |
| 821 | |
| 822 | return intensity; |
| 823 | } |
| 824 | |
| 825 | //----------------------------------------------------------------------------- |
| 826 | // Retrieving Node information |
no test coverage detected