aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/cpp/server
diff options
context:
space:
mode:
authorGravatar Craig Tiller <ctiller@google.com>2015-08-19 11:31:25 -0700
committerGravatar Craig Tiller <ctiller@google.com>2015-08-19 11:31:25 -0700
commit681a291d12bb8fc7f8c238fdb674cd0f140294db (patch)
tree3f4a19726c83cd99ed4c3e419262e53a28418121 /src/cpp/server
parent9374ce819bff3c933f08b9512ded5c513527fd1f (diff)
Extend comment
Diffstat (limited to 'src/cpp/server')
-rw-r--r--src/cpp/server/server.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/cpp/server/server.cc b/src/cpp/server/server.cc
index 8b21337529..e039c07374 100644
--- a/src/cpp/server/server.cc
+++ b/src/cpp/server/server.cc
@@ -332,6 +332,8 @@ void Server::ShutdownInternal(gpr_timespec deadline) {
// Spin, eating requests until the completion queue is completely shutdown.
// If the deadline expires then cancel anything that's pending and keep
// spinning forever until the work is actually drained.
+ // Since nothing else needs to touch state guarded by mu_, holding it
+ // through this loop is fine.
SyncRequest* request;
bool ok;
while (SyncRequest::AsyncWait(&cq_, &request, &ok, deadline)) {