commit | df4c156e6ef04454cc99087e75f570625d37ed70 | [log] [tgz] |
---|---|---|
author | Xiao Ma <xiaom@google.com> | Thu Oct 17 15:54:06 2019 +0900 |
committer | Xiao Ma <xiaom@google.com> | Thu Oct 17 15:54:06 2019 +0900 |
tree | 1f88dd4ef89dfdb862e7385b625b34a3eb81c097 | |
parent | 3c9f687c97393a15d238a3272f62c595052e6b2e [diff] |
Optimize FdEventsReader to make it safer to use. Update the start() and createAndRegisterFd() to boolean type, to make sure we won't return null socket when failing to create socket. Throwing IllegalStateException if any caller is calling the FdEventsReader# start/stop from the different thread, to make it immediately obvious. Bug: None Test: atest NetworkStackTests Change-Id: I398b24da34b8fc9da7e8a9d07508c4d731c4a437