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

Method SetSignalThreshold

cpp/src/platform/Stream.cpp:73–84  ·  view source on GitHub ↗

----------------------------------------------------------------------------- Set the amount of data that must be in the buffer for to to be signalled -----------------------------------------------------------------------------

Source from the content-addressed store, hash-verified

71// Set the amount of data that must be in the buffer for to to be signalled
72//-----------------------------------------------------------------------------
73void Stream::SetSignalThreshold
74(
75 uint32 _size
76)
77{
78 m_signalSize = _size;
79 if( IsSignalled() )
80 {
81 // We have more data than we are waiting for, so notify the watchers
82 Notify();
83 }
84}
85
86//-----------------------------------------------------------------------------
87// <Stream::Get>

Callers 2

DriverMethod · 0.80
ReadMsgMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected