diff options
author | Android Build Coastguard Worker <android-build-coastguard-worker@google.com> | 2023-07-07 05:21:29 +0000 |
---|---|---|
committer | Android Build Coastguard Worker <android-build-coastguard-worker@google.com> | 2023-07-07 05:21:29 +0000 |
commit | 1c9853857b99ad2d79725bdc23f653e8a03879ae (patch) | |
tree | 26c4570f6cc8f5ee36233bd88a2b1236e65a8f20 /fdevent/fdevent_poll.cpp | |
parent | 4d036225cd07cab336e5520d55d6ac79d637ba0f (diff) | |
parent | c362e05a76d7238f684234fe4ad6768c0c461b8d (diff) | |
download | adb-1c9853857b99ad2d79725bdc23f653e8a03879ae.tar.gz |
Snap for 10453563 from c362e05a76d7238f684234fe4ad6768c0c461b8d to mainline-uwb-releaseaml_uwb_341710010aml_uwb_341513070aml_uwb_341511050aml_uwb_341310300aml_uwb_341310030aml_uwb_341111010aml_uwb_341011000android14-mainline-uwb-release
Change-Id: I9df115c1f3dc00849df3b80af008eaee00c476bf
Diffstat (limited to 'fdevent/fdevent_poll.cpp')
-rw-r--r-- | fdevent/fdevent_poll.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/fdevent/fdevent_poll.cpp b/fdevent/fdevent_poll.cpp index 21c1ba09..9b66518b 100644 --- a/fdevent/fdevent_poll.cpp +++ b/fdevent/fdevent_poll.cpp @@ -80,7 +80,7 @@ fdevent_context_poll::~fdevent_context_poll() { } void fdevent_context_poll::Set(fdevent* fde, unsigned events) { - CheckMainThread(); + CheckLooperThread(); fde->state = events; D("fdevent_set: %s, events = %u", dump_fde(fde).c_str(), events); } @@ -101,7 +101,7 @@ static std::string dump_pollfds(const std::vector<adb_pollfd>& pollfds) { } void fdevent_context_poll::Loop() { - main_thread_id_ = android::base::GetThreadId(); + looper_thread_id_ = android::base::GetThreadId(); std::vector<adb_pollfd> pollfds; std::vector<fdevent_event> poll_events; @@ -193,7 +193,7 @@ void fdevent_context_poll::Loop() { poll_events.clear(); } - main_thread_id_.reset(); + looper_thread_id_.reset(); } size_t fdevent_context_poll::InstalledCount() { |