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

Unified Diff: Source/platform/TaskSynchronizer.h

Issue 593423002: Revert of DatabaseBackend should not post a task to an already terminated database thread (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 3 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/modules/webdatabase/DatabaseThread.cpp ('k') | Source/platform/TaskSynchronizer.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/platform/TaskSynchronizer.h
diff --git a/Source/platform/TaskSynchronizer.h b/Source/platform/TaskSynchronizer.h
index dd279a6a66072e81133c3df66f70c3907c8f274d..9ffa0eb43fab75ba56dfb252cea85ff41fbc0c66 100644
--- a/Source/platform/TaskSynchronizer.h
+++ b/Source/platform/TaskSynchronizer.h
@@ -48,12 +48,20 @@
// Called from a thread that executes the task.
void taskCompleted();
+#if ENABLE(ASSERT)
+ bool hasCheckedForTermination() const { return m_hasCheckedForTermination; }
+ void setHasCheckedForTermination() { m_hasCheckedForTermination = true; }
+#endif
+
private:
void waitForTaskCompletionInternal();
bool m_taskCompleted;
Mutex m_synchronousMutex;
ThreadCondition m_synchronousCondition;
+#if ENABLE(ASSERT)
+ bool m_hasCheckedForTermination;
+#endif
};
} // namespace blink
« no previous file with comments | « Source/modules/webdatabase/DatabaseThread.cpp ('k') | Source/platform/TaskSynchronizer.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698