Commit 86ad98e5 authored by Pavel Vainerman's avatar Pavel Vainerman

(IOControl): добавил обработку приоритета опроса и у "пороговых датчиков"

parent bf8ca4b1
...@@ -409,7 +409,10 @@ void IOControl::iopoll() ...@@ -409,7 +409,10 @@ void IOControl::iopoll()
for( PIOMap::iterator it=pmap.begin(); it!=pmap.end(); ++it ) for( PIOMap::iterator it=pmap.begin(); it!=pmap.end(); ++it )
{ {
if( it->priority > 0 ) if( it->priority > 0 )
{
ioread( &(iomap[it->index]) ); ioread( &(iomap[it->index]) );
IOBase::processingThreshold((IOBase*)&(iomap[it->index]),shm,force);
}
} }
bool prior = false; bool prior = false;
...@@ -430,7 +433,10 @@ void IOControl::iopoll() ...@@ -430,7 +433,10 @@ void IOControl::iopoll()
for( PIOMap::iterator it=pmap.begin(); it!=pmap.end(); ++it ) for( PIOMap::iterator it=pmap.begin(); it!=pmap.end(); ++it )
{ {
if( it->priority > 1 ) if( it->priority > 1 )
{
ioread( &(iomap[it->index]) ); ioread( &(iomap[it->index]) );
IOBase::processingThreshold((IOBase*)&(iomap[it->index]),shm,force);
}
} }
prior = true; prior = true;
...@@ -441,7 +447,10 @@ void IOControl::iopoll() ...@@ -441,7 +447,10 @@ void IOControl::iopoll()
for( PIOMap::iterator it=pmap.begin(); it!=pmap.end(); ++it ) for( PIOMap::iterator it=pmap.begin(); it!=pmap.end(); ++it )
{ {
if( it->priority > 2 ) if( it->priority > 2 )
{
ioread( &(iomap[it->index]) ); ioread( &(iomap[it->index]) );
IOBase::processingThreshold((IOBase*)&(iomap[it->index]),shm,force);
}
} }
} }
// -------------------------------------------------------------------------------- // --------------------------------------------------------------------------------
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment