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 b6fb45d..7f887d2 100644
--- a/base/platform_thread.h
+++ b/base/platform_thread.h
@@ -43,6 +43,9 @@ class PlatformThread {
// Gets the current thread.
static PlatformThread Current();
+ // Yield the current thread so another thread can be scheduled.
+ static void YieldCurrentThread();
+
bool operator==(const PlatformThread& other_thread);
private: