- Mar 18, 2013
-
-
akwizgran authored
The UI may access the DB in response to UI or DB events; to maintain a consistent view of the DB's contents, the tasks performing these accesses must be prevented from overlapping, and must produce consistent results if reordered. A single-threaded executor and latches are used to prevent tasks from overlapping, without blocking non-UI access to the DB.
-
akwizgran authored
-
akwizgran authored
-
- Mar 15, 2013
- Mar 14, 2013
-
-
akwizgran authored
Fields in Android UI objects that are accessed from background threads must be declared volatile. UI objects use data attached to DB events to avoid DB lookups, which complicates the UI code but should improve performance.
-
- Mar 13, 2013
-
-
akwizgran authored
-
- Mar 12, 2013
- Mar 11, 2013
-
-
akwizgran authored
-
akwizgran authored
-
akwizgran authored
-
akwizgran authored
-
akwizgran authored
-
akwizgran authored
-
akwizgran authored
-
akwizgran authored
-
akwizgran authored
-
akwizgran authored
-
akwizgran authored
-
akwizgran authored
-
akwizgran authored
-
akwizgran authored
Generate a random UUID instead of using a fixed UUID. Close sockets when exceptions are thrown (not doing so can cause problems with subsequent sockets on Android). Use a semaphore with tryAcquire() instead of a lock when making alien calls, to avoid possible deadlocks.
-
akwizgran authored
-