Skip to content
Snippets Groups Projects
Commit 681a291d authored by Craig Tiller's avatar Craig Tiller
Browse files

Extend comment

parent 9374ce81
No related branches found
No related tags found
No related merge requests found
......@@ -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)) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment