summaryrefslogtreecommitdiffstats
path: root/base/platform_thread.h
diff options
context:
space:
mode:
Diffstat (limited to 'base/platform_thread.h')
-rw-r--r--base/platform_thread.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/base/platform_thread.h b/base/platform_thread.h
index 82f3362..bb75efe 100644
--- a/base/platform_thread.h
+++ b/base/platform_thread.h
@@ -48,6 +48,9 @@ class PlatformThread {
public:
// Gets the current thread.
static PlatformThread Current();
+
+ // Gets the current thread id
+ static int CurrentId();
// Yield the current thread so another thread can be scheduled.
static void YieldCurrentThread();