Go to file
Mathias Agopian 0a8cd0689a fix a race condition in undoDequeue(), where 'tail' could be computed incorrectly.
in the undoDequeue() case, 'tail' was recalculated from 'available' and 'head'
however there was a race between this and retireAndLock(), which could cause
'tail' to be recalculated wrongly.

the interesting thing though is that retireAndLock() shouldn't have any impact
on the value of 'tail', which is client-side only attribute.
we fix the race by saving the value of 'tail' before dequeue() and restore it
in the case of undoDequeue(), since we know it doesn't depend on retireAndLock().

Change-Id: I4bcc4d16b6bc4dd93717ee739c603040b18295a0
2010-04-28 16:12:54 -07:00
awt Add correct copyright headers to multiple files 2010-03-11 18:22:10 -08:00
camera Use timestamp from camera driver for CameraSource 2010-04-28 11:55:47 -07:00
cmds keystore: rephrase the comment to make the usage more clear. 2010-03-17 16:31:20 +08:00
common Move the public method HttpDateTime.parse() into AndroidHttpClient. 2010-04-09 13:34:15 -07:00
include fix a race condition in undoDequeue(), where 'tail' could be computed incorrectly. 2010-04-28 16:12:54 -07:00
libs fix a race condition in undoDequeue(), where 'tail' could be computed incorrectly. 2010-04-28 16:12:54 -07:00
opengl small cleanup. gEGLImpl should have been static 2010-04-09 14:26:07 -07:00
vpn Phase 2 of test cleanup: moving test files from AndroidTests closer to their sources. 2010-01-29 13:35:51 -08:00
MODULE_LICENSE_APACHE2 auto import from //depot/cupcake/@135843 2009-03-03 19:31:44 -08:00
NOTICE Start using CLDR for some date-and-time strings and formats. 2009-05-15 10:15:50 -07:00