MCPcopy Create free account
hub / github.com/OpenZWave/open-zwave / SetPollIntensity

Method SetPollIntensity

cpp/src/Driver.cpp:4434–4450  ·  view source on GitHub ↗

----------------------------------------------------------------------------- Set the intensity with which this value is polled -----------------------------------------------------------------------------

Source from the content-addressed store, hash-verified

4432// Set the intensity with which this value is polled
4433//-----------------------------------------------------------------------------
4434void 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>

Callers 2

EnablePollMethod · 0.45
DisablePollMethod · 0.45

Calls 3

LockMethod · 0.45
ReleaseMethod · 0.45
UnlockMethod · 0.45

Tested by

no test coverage detected