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

Commit e1920b3a authored by Treehugger Robot's avatar Treehugger Robot Committed by Gerrit Code Review
Browse files

Merge "OS: Protect invalidation_list_ with the mutex"

parents 96141547 a976b0a5
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -84,7 +84,10 @@ void Reactor::Run() {
  ASSERT(!previously_running);

  for (;;) {
    {
      std::unique_lock<std::mutex> lock(mutex_);
      invalidation_list_.clear();
    }
    epoll_event events[kEpollMaxEvents];
    int count;
    RUN_NO_INTR(count = epoll_wait(epoll_fd_, events, kEpollMaxEvents, -1));