Defined section filter send timeout.

This commit is contained in:
Alexander Pipelka 2017-09-25 20:37:57 +02:00
parent e90926d5f6
commit c4c2ba8d14
2 changed files with 3 additions and 2 deletions

View File

@ -285,7 +285,7 @@ bool cSatipSectionFilterHandler::Send(void)
}
// anyone ready for writing
if (poll(pollFdsM, eMaxSecFilterCount, 10) <= 0)
if (poll(pollFdsM, eMaxSecFilterCount, eSecFilterSendTimeoutMs) <= 0)
return false;
// send data

View File

@ -65,7 +65,8 @@ public:
class cSatipSectionFilterHandler : public cThread {
private:
enum {
eMaxSecFilterCount = 32
eMaxSecFilterCount = 32,
eSecFilterSendTimeoutMs = 10
};
cRingBufferLinear *ringBufferM;
cMutex mutexM;