summaryrefslogtreecommitdiff
path: root/graphics/java/android/renderscript/ProgramStore.java
diff options
context:
space:
mode:
authorJW Wang <wangchun@google.com>2020-06-15 17:31:42 +0800
committerJW Wang <wangchun@google.com>2020-06-15 17:31:42 +0800
commita8bc614bd07a30fb87aacae2427c01c4605bc990 (patch)
tree4492cb99dbdf3cb032f939362fe5d78349e0b05f /graphics/java/android/renderscript/ProgramStore.java
parent15b6c50356d8c6f339d9ca43134aa21b810c38e7 (diff)
Fix up the threading model (1/n)
1. add thread annotations - @WorkerThread: this method should run on the handler thread only - @AnyThread: this method is thread-safe 2. assert @WorkerThread methods really run on the handler thread 3. dispatch tasks to the handler thread where all state changes happen TODO: remove locks in the next CL. Bug: 158974169 Test: atest StagedRollbackTest Change-Id: I64a5d494075daddc9a4b4fc330605987723f733d
Diffstat (limited to 'graphics/java/android/renderscript/ProgramStore.java')
0 files changed, 0 insertions, 0 deletions