[Rock-dev] [rock] #289: iodrivers_base: extractPacket is called one time too many

rock noreply at opendfki.de
Wed Jul 3 13:58:01 CEST 2013


#289: iodrivers_base: extractPacket is called one time too many
-----------------------+-----------------------------------
 Reporter:  anonymous  |      Owner:  rock-dev-mailing-list
     Type:  defect     |     Status:  new
 Priority:  major      |  Milestone:
Component:  base       |   Keywords:
-----------------------+-----------------------------------
 Driver::readPacketInternal is called at the beginning of the loop as well
 as each time select() returns. This method tests (at the beginning) if the
 internal buffer already contains a packet.

 So, in some conditions are testing for existing packets two times:
  - one time after m_stream->read()
  - then one time at the beginning of readPacketInternal

-- 
Ticket URL: <http://rock.opendfki.de/ticket/289>
rock <http://rock.opendfki.de>
rock: the robot construction kit


More information about the Rock-dev mailing list