rx-do-not-race-current-packet-20090105
authorJeffrey Altman <jaltman@your-file-system.com>
Mon, 5 Jan 2009 23:12:54 +0000 (23:12 +0000)
committerJeffrey Altman <jaltman@secure-endpoints.com>
Mon, 5 Jan 2009 23:12:54 +0000 (23:12 +0000)
commit423ab97eee35f57beeb481cac2159d28dea20577
tree66c36611a96c6cc6b3f58dc2b49e9653acac1489
parente7edfbbf2204641ba08d0ae5e0d085e5f913f2d2
rx-do-not-race-current-packet-20090105

LICENSE MIT

Throughout rx_rdwr.c functions allocate a register variable 'cp'
which is used to optimize access to call->currentPacket.
Unfortunately, if the call->lock is dropped (for example, CV_WAIT)
the synchronization between the two is lost.  This delta re-syncs
'cp' and call->currentPacket after each location where the call->lock
may be dropped.
src/rx/rx_rdwr.c