diff options
author | pinkerton@google.com <pinkerton@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-08-13 23:20:03 +0000 |
---|---|---|
committer | pinkerton@google.com <pinkerton@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-08-13 23:20:03 +0000 |
commit | e5acbcdda213e7d47c7b6cfa5778bb14b4ef20e3 (patch) | |
tree | f358ffbdc3dab9c3d2de2ce057be3343f6c0c385 /base/platform_thread.h | |
parent | 1132e5bc06864ff57902a280f528f01bb00c2043 (diff) | |
download | chromium_src-e5acbcdda213e7d47c7b6cfa5778bb14b4ef20e3.zip chromium_src-e5acbcdda213e7d47c7b6cfa5778bb14b4ef20e3.tar.gz chromium_src-e5acbcdda213e7d47c7b6cfa5778bb14b4ef20e3.tar.bz2 |
Fix for mac and linux. Fix gcc warning about class with virtual functions and no virtual dtor.
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@842 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base/platform_thread.h')
-rw-r--r-- | base/platform_thread.h | 3 |
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(); |