commit | 835e75c636e1edf9f9354f82e5b68f36a87a309a | [log] [tgz] |
---|---|---|
author | Ruchir Rastogi <ruchirr@google.com> | Fri May 15 12:57:15 2020 -0700 |
committer | Ruchir Rastogi <ruchirr@google.com> | Wed May 27 08:47:50 2020 -0700 |
tree | 6a290f009413cf27327c48dd92b0bf6f447b4dd3 | |
parent | eafbb325ebb43df443b100c3221dfecc754be3e1 [diff] |
Combine startPull and sendHeartbeat threads This ensures that only one helper thread is created per subscription. Previously, there could be up to two. + fixes thread sleep duration if the pulled atoms have different pull frequencies + rename attemptWriteToSocketLocked to attemptWriteToPipeLocked Test: atest statsd_test Test: atest CtsStatsdHostTestCases:ShellSubscriberTest Test: manual testing on Android Studio Bug: 156678125 Change-Id: I7074bbba5981a591a30e8b70a1ad1d83eadfcc30