Skip to content
This repository has been archived by the owner on Apr 6, 2019. It is now read-only.

Commit

Permalink
[2.4.4] fix #17 and cpp_redis#85 (select keep sleeping and does not p…
Browse files Browse the repository at this point in the history
…rocess incoming read/write events).
  • Loading branch information
Simon Ninon committed Jul 2, 2017
1 parent 4d4150a commit ae0f2e9
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
6 changes: 4 additions & 2 deletions sources/network/unix/io_service.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -161,8 +161,9 @@ io_service::process_rd_event(const fd_t& fd, tracked_socket& socket) {
__TACOPIE_LOG(debug, "untrack socket");
m_tracked_sockets.erase(it);
m_wait_for_removal_condvar.notify_all();
m_notifier.notify();
}

m_notifier.notify();
};
}

Expand Down Expand Up @@ -190,8 +191,9 @@ io_service::process_wr_event(const fd_t& fd, tracked_socket& socket) {
__TACOPIE_LOG(debug, "untrack socket");
m_tracked_sockets.erase(it);
m_wait_for_removal_condvar.notify_all();
m_notifier.notify();
}

m_notifier.notify();
};
}

Expand Down
6 changes: 4 additions & 2 deletions sources/network/windows/io_service.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -162,8 +162,9 @@ io_service::process_rd_event(const fd_t& fd, tracked_socket& socket) {
__TACOPIE_LOG(debug, "untrack socket");
m_tracked_sockets.erase(it);
m_wait_for_removal_condvar.notify_all();
m_notifier.notify();
}

m_notifier.notify();
};
}

Expand Down Expand Up @@ -191,8 +192,9 @@ io_service::process_wr_event(const fd_t& fd, tracked_socket& socket) {
__TACOPIE_LOG(debug, "untrack socket");
m_tracked_sockets.erase(it);
m_wait_for_removal_condvar.notify_all();
m_notifier.notify();
}

m_notifier.notify();
};
}

Expand Down

0 comments on commit ae0f2e9

Please sign in to comment.