8000 Removed boost::bind from network.cc. · jchjava/rethinkdb@26eb06c · GitHub
[go: up one dir, main page]

Skip to content 10000

Commit 26eb06c

Browse files
committed
Removed boost::bind from network.cc.
1 parent 834ce97 commit 26eb06c

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/arch/io/network.cc

Lines changed: 3 additions & 3 deletions
8000
Original file line numberDiff line numberDiff line change
@@ -654,7 +654,7 @@ bool linux_nonthrowing_tcp_listener_t::begin_listening() {
654654

655655
// Start the accept loop
656656
accept_loop_drainer.init(new auto_drainer_t);
657-
coro_t::spawn_sometime(boost::bind(
657+
coro_t::spawn_sometime(std::bind(
658658
&linux_nonthrowing_tcp_listener_t::accept_loop, this, auto_drainer_t::lock_t(accept_loop_drainer.get())));
659659

660660
return true;
@@ -837,7 +837,7 @@ void linux_nonthrowing_tcp_listener_t::accept_loop(auto_drainer_t::lock_t lock)
837837
fd_t new_sock = accept(active_fd, NULL, NULL);
838838

839839
if (new_sock != INVALID_FD) {
840-
coro_t::spawn_now_dangerously(boost::bind(&linux_nonthrowing_tcp_listener_t::handle, this, new_sock));
840+
coro_t::spawn_now_dangerously(std::bind(&linux_nonthrowing_tcp_listener_t::handle, this, new_sock));
841841

842842
/* If we backed off before, un-backoff now that the problem seems to be
843843
resolved. */
@@ -940,7 +940,7 @@ int linux_repeated_nonthrowing_tcp_listener_t::get_port() const {
940940
void linux_repeated_nonthrowing_tcp_listener_t::begin_repeated_listening_attempts() {
941941
auto_drainer_t::lock_t lock(&drainer);
942942
coro_t::spawn_sometime(
943-
boost::bind(&linux_repeated_nonthrowing_tcp_listener_t::retry_loop, this, lock));
943+
std::bind(&linux_repeated_nonthrowing_tcp_listener_t::retry_loop, this, lock));
944944
}
945945

946946
void linux_repeated_nonthrowing_tcp_listener_t::retry_loop(auto_drainer_t::lock_t lock) {

src/arch/io/network.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -283,7 +283,7 @@ class linux_tcp_conn_t :
283283
void internal_flush_write_buffer();
284284

285285
/* Used to queue up buffers to write. The functions in `write_queue` will all be
286-
`boost::bind()`s of the `perform_write()` function below. */
286+
`std::bind()`s of the `perform_write()` function below. */
287287
unlimited_fifo_queue_t<write_queue_op_t*, intrusive_list_t<write_queue_op_t> > write_queue;
288288

289289
/* This semaphore prevents the write queue from getting arbitrarily big. */

0 commit comments

Comments
 (0)
0