From 6bc83f72f12c8513a1e9e9b6fd880697a73f968f Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Tue, 1 Jul 2014 13:43:41 +0100 Subject: while (1) -> while (true) --- src/lib/server.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/lib/server.cc') diff --git a/src/lib/server.cc b/src/lib/server.cc index 7450fd12e..f1c6d6c44 100644 --- a/src/lib/server.cc +++ b/src/lib/server.cc @@ -115,7 +115,7 @@ Server::process (shared_ptr socket, struct timeval& after_read, struct t void Server::worker_thread () { - while (1) { + while (true) { boost::mutex::scoped_lock lock (_worker_mutex); while (_queue.empty ()) { _empty_condition.wait (lock); @@ -194,7 +194,7 @@ Server::run (int num_threads) boost::asio::ip::tcp::endpoint (boost::asio::ip::tcp::v4(), Config::instance()->server_port_base ()) ); - while (1) { + while (true) { shared_ptr socket (new Socket); acceptor.accept (socket->socket ()); -- cgit v1.2.3