Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(324)

Unified Diff: Source/platform/scheduler/Scheduler.h

Issue 976723002: Add support for postNonNestableIdleTask to the Scheduler and use it in Oilpan (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebased Created 5 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/platform/heap/ThreadState.cpp ('k') | Source/platform/scheduler/Scheduler.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/platform/scheduler/Scheduler.h
diff --git a/Source/platform/scheduler/Scheduler.h b/Source/platform/scheduler/Scheduler.h
index 2a7d84b268c3f5ea7800edee3e816689b35412a9..f516d9e6e74bc083fdf025ac3d8382fec711a90c 100644
--- a/Source/platform/scheduler/Scheduler.h
+++ b/Source/platform/scheduler/Scheduler.h
@@ -31,6 +31,13 @@ public:
// for an arbitrarily long time if no idle time is available.
void postIdleTask(const WebTraceLocation&, PassOwnPtr<IdleTask>);
+ // Like postIdleTask but guarantees that the posted task will not run
+ // nested within an already-running task. Posting an idle task as
+ // non-nestable may not affect when the task gets run, or it could
+ // make it run later than it normally would, but it won't make it
+ // run earlier than it normally would.
+ void postNonNestableIdleTask(const WebTraceLocation&, PassOwnPtr<IdleTask>);
+
// Like postIdleTask but does not run the idle task until after some other
// task has run. This enables posting of a task which won't stop the Blink
// main thread from sleeping, but will start running after it wakes up.
« no previous file with comments | « Source/platform/heap/ThreadState.cpp ('k') | Source/platform/scheduler/Scheduler.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698