Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(203)

Unified Diff: runtime/vm/os_thread.h

Issue 796063006: Rename Thread -> OSThread. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 5 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « runtime/vm/os_linux.cc ('k') | runtime/vm/os_thread_android.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/os_thread.h
===================================================================
--- runtime/vm/os_thread.h (revision 42893)
+++ runtime/vm/os_thread.h (working copy)
@@ -2,20 +2,21 @@
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
-#ifndef VM_THREAD_H_
-#define VM_THREAD_H_
+#ifndef VM_OS_THREAD_H_
+#define VM_OS_THREAD_H_
#include "platform/globals.h"
+#include "vm/allocation.h"
// Declare the OS-specific types ahead of defining the generic classes.
#if defined(TARGET_OS_ANDROID)
-#include "vm/thread_android.h"
+#include "vm/os_thread_android.h"
#elif defined(TARGET_OS_LINUX)
-#include "vm/thread_linux.h"
+#include "vm/os_thread_linux.h"
#elif defined(TARGET_OS_MACOS)
-#include "vm/thread_macos.h"
+#include "vm/os_thread_macos.h"
#elif defined(TARGET_OS_WINDOWS)
-#include "vm/thread_win.h"
+#include "vm/os_thread_win.h"
#else
#error Unknown target os.
#endif
@@ -24,7 +25,8 @@
class Isolate;
-class Thread {
+// Low-level operations on OS platform threads.
+class OSThread : AllStatic {
public:
static ThreadLocalKey kUnsetThreadLocalKey;
static ThreadId kInvalidThreadId;
@@ -107,4 +109,4 @@
} // namespace dart
-#endif // VM_THREAD_H_
+#endif // VM_OS_THREAD_H_
« no previous file with comments | « runtime/vm/os_linux.cc ('k') | runtime/vm/os_thread_android.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698