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

Unified Diff: Source/wtf/Functional.h

Issue 1091333003: Add comments about threadSafeBind() (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 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 | « Source/platform/ThreadSafeFunctional.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/wtf/Functional.h
diff --git a/Source/wtf/Functional.h b/Source/wtf/Functional.h
index 9c4fca473fa810250dbc665e2ea60e80c098b82c..a9376960aceaba2f5af5211a45fe4f747a859582 100644
--- a/Source/wtf/Functional.h
+++ b/Source/wtf/Functional.h
@@ -38,6 +38,9 @@ namespace WTF {
// Functional.h provides a very simple way to bind a function pointer and arguments together into a function object
// that can be stored, copied and invoked, similar to how boost::bind and std::bind in C++11.
+// Use threadSafeBind() or createCrossThreadTask() if the function/task is
+// called on a (potentially) different thread from the current thread.
+
// A FunctionWrapper is a class template that can wrap a function pointer or a member function pointer and
// provide a unified interface for calling that function.
template<typename>
« no previous file with comments | « Source/platform/ThreadSafeFunctional.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698