From c6b94194f298d80d5b8c70ad5acc3e2ccd423b24 Mon Sep 17 00:00:00 2001 From: Michal Jarzabek Date: Thu, 14 Jul 2016 18:50:38 +0100 Subject: [PATCH] msg/AsyncConnection: add const to mem functions Signed-off-by: Michal Jarzabek --- src/msg/async/AsyncConnection.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/msg/async/AsyncConnection.h b/src/msg/async/AsyncConnection.h index 2073d5fbdd991f..858f870ade006f 100644 --- a/src/msg/async/AsyncConnection.h +++ b/src/msg/async/AsyncConnection.h @@ -99,7 +99,7 @@ class AsyncConnection : public Connection { state = STATE_ACCEPTING_WAIT_CONNECT_MSG; return 0; } - bool is_queued() { + bool is_queued() const { assert(write_lock.is_locked()); return !out_q.empty() || outcoming_bl.length(); } @@ -135,7 +135,7 @@ class AsyncConnection : public Connection { } return m; } - bool _has_next_outgoing() { + bool _has_next_outgoing() const { assert(write_lock.is_locked()); return !out_q.empty(); }