diff options
| author | Carl Hetherington <cth@carlh.net> | 2014-07-01 13:43:41 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2014-07-01 13:43:41 +0100 |
| commit | 6bc83f72f12c8513a1e9e9b6fd880697a73f968f (patch) | |
| tree | 2b7f8b1456aea84dc088b5638524e908585c7e6e /src/lib/server.cc | |
| parent | a6b3b4539ae17ce59f975a4be49278f4ccc736fd (diff) | |
while (1) -> while (true)
Diffstat (limited to 'src/lib/server.cc')
| -rw-r--r-- | src/lib/server.cc | 4 |
1 files changed, 2 insertions, 2 deletions
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> 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> socket (new Socket); acceptor.accept (socket->socket ()); |
