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

Side by Side Diff: runtime/platform/thread.h

Issue 294193003: Fix thread-interrupter shutdown on Windows. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Cleanup based on typedef fix. Created 6 years, 7 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | runtime/platform/thread_android.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 #ifndef PLATFORM_THREAD_H_ 5 #ifndef PLATFORM_THREAD_H_
6 #define PLATFORM_THREAD_H_ 6 #define PLATFORM_THREAD_H_
7 7
8 #include "platform/globals.h" 8 #include "platform/globals.h"
9 9
10 // Declare the OS-specific types ahead of defining the generic classes. 10 // Declare the OS-specific types ahead of defining the generic classes.
(...skipping 24 matching lines...) Expand all
35 static int Start(ThreadStartFunction function, uword parameters); 35 static int Start(ThreadStartFunction function, uword parameters);
36 36
37 static ThreadLocalKey CreateThreadLocal(); 37 static ThreadLocalKey CreateThreadLocal();
38 static void DeleteThreadLocal(ThreadLocalKey key); 38 static void DeleteThreadLocal(ThreadLocalKey key);
39 static uword GetThreadLocal(ThreadLocalKey key) { 39 static uword GetThreadLocal(ThreadLocalKey key) {
40 return ThreadInlineImpl::GetThreadLocal(key); 40 return ThreadInlineImpl::GetThreadLocal(key);
41 } 41 }
42 static void SetThreadLocal(ThreadLocalKey key, uword value); 42 static void SetThreadLocal(ThreadLocalKey key, uword value);
43 static intptr_t GetMaxStackSize(); 43 static intptr_t GetMaxStackSize();
44 static ThreadId GetCurrentThreadId(); 44 static ThreadId GetCurrentThreadId();
45 static bool Join(ThreadId id);
45 static intptr_t ThreadIdToIntPtr(ThreadId id); 46 static intptr_t ThreadIdToIntPtr(ThreadId id);
46 static bool Compare(ThreadId a, ThreadId b); 47 static bool Compare(ThreadId a, ThreadId b);
47 static void GetThreadCpuUsage(ThreadId thread_id, int64_t* cpu_usage); 48 static void GetThreadCpuUsage(ThreadId thread_id, int64_t* cpu_usage);
48 }; 49 };
49 50
50 51
51 class Mutex { 52 class Mutex {
52 public: 53 public:
53 Mutex(); 54 Mutex();
54 ~Mutex(); 55 ~Mutex();
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
91 MonitorData data_; // OS-specific data. 92 MonitorData data_; // OS-specific data.
92 93
93 DISALLOW_COPY_AND_ASSIGN(Monitor); 94 DISALLOW_COPY_AND_ASSIGN(Monitor);
94 }; 95 };
95 96
96 97
97 } // namespace dart 98 } // namespace dart
98 99
99 100
100 #endif // PLATFORM_THREAD_H_ 101 #endif // PLATFORM_THREAD_H_
OLDNEW
« no previous file with comments | « no previous file | runtime/platform/thread_android.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698