commit | 53e89c9f34ab37c9429bd6537daf2016828efe0e | [log] [tgz] |
---|---|---|
author | JW Wang <wangchun@google.com> | Thu Nov 28 19:53:45 2019 +0800 |
committer | JW Wang <wangchun@google.com> | Mon Jan 06 16:44:24 2020 +0800 |
tree | c8dafc868fbf8c83e845f2b5dff17b0cc3298387 | |
parent | 9e87abdcda1e378a6ac58562c4483bbb4e8d87ac [diff] |
Add thread annotations (1/n) Make it clear which thread a method should be called from. This should make the code more readable and easier to reason about. - @AnyThread annotates thread-safe methods. - @WorkerThread annotates methods that should only run on the handler thread. Bug: 145335013 Test: m Change-Id: Iee986448dfdd32e2c0e898196da76072ed0af972