Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 78e3718e authored by Bart Van Assche's avatar Bart Van Assche Committed by Automerger Merge Worker
Browse files

libhealthloop: Micro-optimize HealthLoop::RegisterEvent() am: 6fe3618e

parents 3128ff52 6fe3618e
Loading
Loading
Loading
Loading
+4 −4
Original line number Diff line number Diff line
@@ -52,9 +52,9 @@ HealthLoop::~HealthLoop() {
int HealthLoop::RegisterEvent(int fd, BoundFunction func, EventWakeup wakeup) {
    CHECK(!reject_event_register_);

    auto* event_handler =
            event_handlers_
                    .emplace_back(std::make_unique<EventHandler>(EventHandler{this, fd, func}))
    auto* event_handler = event_handlers_
                                  .emplace_back(std::make_unique<EventHandler>(
                                          EventHandler{this, fd, std::move(func)}))
                                  .get();

    struct epoll_event ev;