summaryrefslogtreecommitdiff
path: root/rs/java/android/renderscript/ProgramFragmentFixedFunction.java
diff options
context:
space:
mode:
authorPhilip P. Moltmann <moltmann@google.com>2017-03-06 16:11:29 -0800
committerPhilip P. Moltmann <moltmann@google.com>2017-03-06 16:24:30 -0800
commitccc5fc0e31752caa0a17502e7f948645c3bac65f (patch)
tree5625cc99d5334da4a75f99660231190b20b78dca /rs/java/android/renderscript/ProgramFragmentFixedFunction.java
parent4d7094dc998b4765cb73c6ec26e61a6cc0df030f (diff)
Allow disk writes on main thread in SharedPrefs
waitToFinish is called when the main thread enters the stopped state. At this time we need to make sure to flush all shared preferences to the disk. Usually this is not problem as they were asyncronously persisted. In rare circumstances it can happen that the shared preferences are not flushed yet. Disk writes on main thread are quicker then waiting for the background thread to do the write for this thread. Hence it is ok to write on the main thread here. Test: android.content.cts.SharedPreferencesTest Change-Id: Ice8c0425a60005d1e4b150fa74e55e753dead6b8
Diffstat (limited to 'rs/java/android/renderscript/ProgramFragmentFixedFunction.java')
0 files changed, 0 insertions, 0 deletions