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

Unified Diff: cc/base/completion_event.h

Issue 2790173005: cc: Dump scheduler and tile manager state when commit is blocked. (Closed)
Patch Set: cc: Dump scheduler and tile manager state when commit is blocked. Created 3 years, 8 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 | « no previous file | cc/trees/proxy_impl.h » ('j') | cc/trees/proxy_impl.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/base/completion_event.h
diff --git a/cc/base/completion_event.h b/cc/base/completion_event.h
index edee0b78bf0e7bff28b07b878faae6a2ea858cce..c2c212d5f1afc504e653feeca2cbaf5260292f23 100644
--- a/cc/base/completion_event.h
+++ b/cc/base/completion_event.h
@@ -43,12 +43,13 @@ class CompletionEvent {
event_.Wait();
}
- void TimedWait(const base::TimeDelta& max_time) {
+ bool TimedWait(const base::TimeDelta& max_time) {
#if DCHECK_IS_ON()
DCHECK(!waited_);
waited_ = true;
#endif
- event_.TimedWait(max_time);
+ base::ThreadRestrictions::ScopedAllowWait allow_wait;
+ return event_.TimedWait(max_time);
}
bool IsSignaled() { return event_.IsSignaled(); }
« no previous file with comments | « no previous file | cc/trees/proxy_impl.h » ('j') | cc/trees/proxy_impl.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698