Skip to content

Commit

Permalink
[src] Modify argv passing method for UNIX Poller
Browse files Browse the repository at this point in the history
  • Loading branch information
Sigma711 committed Jul 9, 2023
1 parent 9249914 commit 6bb7063
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/poller.cc
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,7 @@ void Poller::RemoveEventer(Eventer* eventer) {
}

void Poller::GetActiveEventer(int event_amount,
const PollEventList active_events,
const PollEventList& active_events,
EventerList* active_eventers) const {
LockGuard lock_guard(event_lock_);
for (auto itr = active_events.cbegin();
Expand Down
2 changes: 1 addition & 1 deletion src/poller.h
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ class Poller : NonCopyableMovable {
typedef std::map<int, Eventer*> EventerMap;
typedef std::vector<struct pollfd> PollEventList;

void GetActiveEventer(int event_amount, const PollEventList active_events,
void GetActiveEventer(int event_amount, const PollEventList& active_events,
EventerList* active_eventers) const;

// Map for all file descriptors mapping to their corresponding "Eventer"s
Expand Down

0 comments on commit 6bb7063

Please sign in to comment.