Closed GoogleCodeExporter closed 8 years ago
This issue is incorrectly report. The messages object is instanced per thread,
therefore there is no race condition.
However, a similar claim (race conditions) can be found in:
getPushedNotifications(), clearPushedNotifications()
1) getPushedNotifications() - first count the capacity pf number of
pushNotificaitons and then adds theme to a Collection. At this point the number
could change.
2) I Would be expect to read all the pushed notifications and then clear them.
But, how can I be sure that I am removing the notifications that I read. (And
not remove a notification that was just added right after I called
getPushedNotifications() ).
Original comment by meirda...@gmail.com
on 4 Mar 2013 at 8:37
This was improved in the trunk some time ago. The PushedNotificationS object
is an independent snapshot produced by NotificationThread within a synchronized
block. No PushedNotification object can be added to the thread's list while
the PushedNotificationS list is being created.
Original comment by sype...@gmail.com
on 13 Oct 2014 at 3:03
Original issue reported on code.google.com by
meirda...@gmail.com
on 4 Mar 2013 at 6:52