summaryrefslogtreecommitdiff
path: root/graphics/java/android/renderscript/ProgramFragmentFixedFunction.java
diff options
context:
space:
mode:
authorJozef BABJAK <jozef.babjak@ixonos.com>2011-01-20 08:09:25 +0100
committerJozef BABJAK <jozef.babjak@ixonos.com>2011-02-01 08:53:52 +0100
commit06e57b5d46c87e9dd7bca1386b63b3a8522f51ef (patch)
tree3ae0da78524f8126167ed1e0c64314ec71141075 /graphics/java/android/renderscript/ProgramFragmentFixedFunction.java
parent056340ac95f233090990d77266d89aad3b60f913 (diff)
Fixing possible race condition.
That return statement is effectively a reading of asynchronously modified field. The reading and writing is elsewhere protected by locking on thread instance, except this one occurence. Moving 'return' statement into synchronized block ensures that it reads updated value. Don't be afraid of deadlock - wait() releases the lock and acquires it back when notified. Change-Id: I940c24c04a1a2d4508d14d11b6174ff4fb2ab7d5
Diffstat (limited to 'graphics/java/android/renderscript/ProgramFragmentFixedFunction.java')
0 files changed, 0 insertions, 0 deletions