summaryrefslogtreecommitdiff
path: root/media/base/serial_runner.h
diff options
context:
space:
mode:
authorTorne (Richard Coles) <torne@google.com>2013-08-30 15:14:49 +0100
committerTorne (Richard Coles) <torne@google.com>2013-08-30 15:14:49 +0100
commit424c4d7b64af9d0d8fd9624f381f469654d5e3d2 (patch)
treeaf8b16dc2ba7fc8c8bb1c9fa18b907c847f3883d /media/base/serial_runner.h
parentc70ef2906f891fe7d218980660e4cda465717916 (diff)
downloadchromium_org-424c4d7b64af9d0d8fd9624f381f469654d5e3d2.tar.gz
Merge from Chromium at DEPS revision r220549
This commit was generated by merge_to_master.py. Change-Id: I8fcb82db764ec1eb0294280936c177bd9ba8a9e9
Diffstat (limited to 'media/base/serial_runner.h')
-rw-r--r--media/base/serial_runner.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/media/base/serial_runner.h b/media/base/serial_runner.h
index ef4b5d7696..eaae625cd4 100644
--- a/media/base/serial_runner.h
+++ b/media/base/serial_runner.h
@@ -51,6 +51,13 @@ class MEDIA_EXPORT SerialRunner {
// All bound functions are executed on the thread that Run() is called on,
// including |done_cb|.
//
+ // To eliminate an unnecessary posted task, the first function is executed
+ // immediately on the caller's stack. It is *strongly advised* to ensure
+ // the calling code does no more work after the call to Run().
+ //
+ // In all cases, |done_cb| is guaranteed to execute on a separate calling
+ // stack.
+ //
// Deleting the object will prevent execution of any unstarted bound
// functions, including |done_cb|.
static scoped_ptr<SerialRunner> Run(