Commit 65a18c83 authored by Gabriel Charette's avatar Gabriel Charette Committed by Commit Bot

[mojo] Update message_quota_checker.h doc in prep for base::PostTask migration

R=rockot@google.com

Bug: 1026641
Change-Id: Id9e75f1959687ff9cae1fe92e2923f7f38eff8ba
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2219152
Commit-Queue: Gabriel Charette <gab@chromium.org>
Commit-Queue: Ken Rockot <rockot@google.com>
Auto-Submit: Gabriel Charette <gab@chromium.org>
Reviewed-by: default avatarKen Rockot <rockot@google.com>
Cr-Commit-Position: refs/heads/master@{#772453}
parent 1917410b
...@@ -31,10 +31,10 @@ namespace internal { ...@@ -31,10 +31,10 @@ namespace internal {
// outgoing queue. Additionally, |BeforeWrite()| should be called immediately // outgoing queue. Additionally, |BeforeWrite()| should be called immediately
// before writing each message to the corresponding message pipe. // before writing each message to the corresponding message pipe.
// //
// Also note that messages posted to a different sequence with // Also note that messages posted to a different sequence with base::ThreadPool
// |base::PostTask()| and the like, need to be treated as locally queued. Task // and the like, need to be treated as locally queued. Task queues can grow
// queues can grow arbitrarily long, and it's ideal to perform unread quota // arbitrarily long, and it's ideal to perform unread quota checks before
// checks before posting. // posting.
// //
// Either |BeforeMessagesEnqueued()| or |BeforeWrite()| may cause the quota // Either |BeforeMessagesEnqueued()| or |BeforeWrite()| may cause the quota
// to be exceeded, thus invoking the |maybe_crash_function| set in this // to be exceeded, thus invoking the |maybe_crash_function| set in this
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment