commit | c5cbee7d78513527e89450e6369a30a04b2d5e7a | [log] [tgz] |
---|---|---|
author | Romain Guy <romainguy@google.com> | Wed Mar 20 19:15:02 2013 -0700 |
committer | Romain Guy <romainguy@google.com> | Wed Mar 20 19:16:53 2013 -0700 |
tree | a3709dd93124509c4490b889622b277d11fbef30 | |
parent | 9eac52698b18d089e73c7ec2bf73a64a39504733 [diff] [blame] |
Stop worker threads on memory trim & fix bad pointer access Change-Id: I6fe7e31aeb6dd41fa65ab952caed97bc2da510d7
diff --git a/libs/hwui/thread/TaskManager.h b/libs/hwui/thread/TaskManager.h index bc86062..477314b 100644 --- a/libs/hwui/thread/TaskManager.h +++ b/libs/hwui/thread/TaskManager.h
@@ -47,6 +47,12 @@ */ bool canRunTasks() const; + /** + * Stops all allocated threads. Adding tasks will start + * the threads again as necessary. + */ + void stop(); + private: template <typename T> friend class TaskProcessor;