Index: public/platform/WebThread.h |
diff --git a/public/platform/WebThread.h b/public/platform/WebThread.h |
index 6bee10fbfebd929305b7c94031e4bf87e545f79b..b9fee19f1ee5461053410c611c9242757218dc70 100644 |
--- a/public/platform/WebThread.h |
+++ b/public/platform/WebThread.h |
@@ -26,9 +26,13 @@ |
#define WebThread_h |
#include "WebCommon.h" |
+#include <stdint.h> |
namespace blink { |
+// Always an integer value. |
+typedef uint32_t PlatformThreadId; |
yurys
2014/08/28 15:24:21
I would define this as
#if OS(WIN)
typedef DWORD P
|
+ |
// Provides an interface to an embedder-defined thread implementation. |
// |
// Deleting the thread blocks until all pending, non-delayed tasks have been |
@@ -55,6 +59,7 @@ public: |
virtual void postDelayedTask(Task*, long long delayMs) = 0; |
virtual bool isCurrentThread() const = 0; |
+ virtual PlatformThreadId threadId() const { return 0; } |
virtual void addTaskObserver(TaskObserver*) { } |
virtual void removeTaskObserver(TaskObserver*) { } |