summaryrefslogtreecommitdiff
path: root/rs/java/android/renderscript/ProgramStore.java
diff options
context:
space:
mode:
authorHugo Benichi <hugobenichi@google.com>2017-08-22 13:57:41 +0900
committerLorenzo Colitti <lorenzo@google.com>2017-08-22 19:31:31 +0900
commiteb5e465edd78bea26289f779b635c7e94d934854 (patch)
tree7ee98e0fa14801dc2d286ee8ca0bbfb96418ebbf /rs/java/android/renderscript/ProgramStore.java
parent185a91c7ef4852f399f44d254cef63f4b62d7ea6 (diff)
Tethering offload stats updates are eventually consistent
This patch removes the call to runWithScissors() in OffloadController#getTetherStats() that was causing a deadlock when NetworkStatsService would be polled for stats in certain threading contexts. Instead of trying to query the tethering offload HAL synchronously all the time, this patch: - changes getTetherStats() to only call into the offload HAL when it detects that it is called on the same thread as the Tethering handler thread. - changes the map of interface to accumulated tethering forwarded stats to be concurrent. This makes stats reading from getTetherStats() eventually consistent. From the point of view of getTetherStats(), it preserves the guarantees that tethering stats are monotonically increasing, and also guarantees no tearing between rx bytes and tx bytes. Bug: 29337859 Bug: 32163131 Bug: 64771555 Test: runtest frameworks-net Change-Id: Ibcd351ad0225ef146b00a807833f76d2a886f6c1
Diffstat (limited to 'rs/java/android/renderscript/ProgramStore.java')
0 files changed, 0 insertions, 0 deletions