aboutsummaryrefslogtreecommitdiff
path: root/fdevent/fdevent_poll.cpp
diff options
context:
space:
mode:
authorAndroid Build Coastguard Worker <android-build-coastguard-worker@google.com>2023-07-07 05:21:29 +0000
committerAndroid Build Coastguard Worker <android-build-coastguard-worker@google.com>2023-07-07 05:21:29 +0000
commit1c9853857b99ad2d79725bdc23f653e8a03879ae (patch)
tree26c4570f6cc8f5ee36233bd88a2b1236e65a8f20 /fdevent/fdevent_poll.cpp
parent4d036225cd07cab336e5520d55d6ac79d637ba0f (diff)
parentc362e05a76d7238f684234fe4ad6768c0c461b8d (diff)
downloadadb-1c9853857b99ad2d79725bdc23f653e8a03879ae.tar.gz
Change-Id: I9df115c1f3dc00849df3b80af008eaee00c476bf
Diffstat (limited to 'fdevent/fdevent_poll.cpp')
-rw-r--r--fdevent/fdevent_poll.cpp6
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() {