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

Commit a976b0a5 authored by Myles Watson's avatar Myles Watson
Browse files

OS: Protect invalidation_list_ with the mutex

Test: AclManagerTest.startup_teardown
Change-Id: I5a9467691ffd1bb6bc2bb9d1080dce5f5bc655fa
parent 8fc2bcc9
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));