summaryrefslogtreecommitdiff
path: root/graphics/java/android/renderscript/ProgramVertexFixedFunction.java
diff options
context:
space:
mode:
authorJoe Onorato <joeo@google.com>2011-01-16 13:04:51 -0800
committerJoe Onorato <joeo@google.com>2011-01-16 13:09:52 -0800
commit81de61bfddceba0eb77b3aacea317594b0f1de49 (patch)
treee466faea10fcf8bb143c9a17ce53b94311473a7a /graphics/java/android/renderscript/ProgramVertexFixedFunction.java
parent772f5600ef720945b98054246982fd3b711830a9 (diff)
Change the default of how AsyncTask enqueues.
The default is now to serialize everything onto the thread pool. If you would like to have finer grained control over how AsyncTasks are executed, you can call the new executeOnExecutor method, which takes a custom Executor. The pool used by the default is handily now accessible as THREAD_POOL_EXECUTOR. This change is because it is too tempting to convert single threaded Janky™ code to use AsyncTask in a way that is unsafe and ends up calling the AsyncTasks in parallel. Also, this adds a static execute(Runnable) method to AsyncTask that posts onto the serialized queue, so that if you don't have any parameters or return values, you can just use Runnable instead of AsyncTask. Change-Id: I91bdfb00193542bfc2e101bcad56e3430421884a
Diffstat (limited to 'graphics/java/android/renderscript/ProgramVertexFixedFunction.java')
0 files changed, 0 insertions, 0 deletions