Index: third_party/WebKit/Source/wtf/WTF.cpp |
diff --git a/third_party/WebKit/Source/wtf/WTF.cpp b/third_party/WebKit/Source/wtf/WTF.cpp |
index 5fb8a67f95cad7069ca53aa39a91f07a789fc395..494219ae7280467bbe0abca80cf350e9e48e5fbe 100644 |
--- a/third_party/WebKit/Source/wtf/WTF.cpp |
+++ b/third_party/WebKit/Source/wtf/WTF.cpp |
@@ -53,6 +53,10 @@ void callOnMainThread(MainThreadFunction* function, void* context) { |
(*s_callOnMainThreadFunction)(function, context); |
} |
+bool isMainThreadSyscall() { |
+ return internal::currentThreadSyscall() == s_mainThreadIdentifier; |
+} |
+ |
} // namespace internal |
bool isMainThread() { |