----------------------------------------------------------------------------- Set the intensity with which this value is polled -----------------------------------------------------------------------------
| 4432 | // Set the intensity with which this value is polled |
| 4433 | //----------------------------------------------------------------------------- |
| 4434 | void Driver::SetPollIntensity |
| 4435 | ( |
| 4436 | ValueID const &_valueId, |
| 4437 | uint8 const _intensity |
| 4438 | ) |
| 4439 | { |
| 4440 | // make sure the polling thread doesn't lock the value while we're in this function |
| 4441 | m_pollMutex->Lock(); |
| 4442 | |
| 4443 | Value* value = GetValue( _valueId ); |
| 4444 | if (!value) |
| 4445 | return; |
| 4446 | value->SetPollIntensity( _intensity ); |
| 4447 | |
| 4448 | value->Release(); |
| 4449 | m_pollMutex->Unlock(); |
| 4450 | } |
| 4451 | |
| 4452 | //----------------------------------------------------------------------------- |
| 4453 | // <Driver::PollThreadEntryPoint> |
no test coverage detected