Commit 528e6043 authored by Paul Asmuth's avatar Paul Asmuth
Browse files

shutdown fix

parent 12270768
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -183,7 +183,7 @@ void EventLoop::runQWakeup() {
void EventLoop::run() {
  threadid_ = std::this_thread::get_id();

  while (running_) {
  while (running_.load()) {
    poll();
  }
}
+1 −1
Original line number Diff line number Diff line
@@ -44,7 +44,7 @@ protected:
  fd_set op_write_;
  fd_set op_error_;
  int max_fd_;
  volatile bool running_;
  std::atomic<bool> running_;
  int runq_wakeup_pipe_[2];
  std::list<std::function<void()>> runq_;
  std::mutex runq_mutex_;