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

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

Issue 9328042: Move the thread local functions to the Thread class in runtime/platform (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Reverted unintentional change Created 8 years, 10 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
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_WIN_H_ 5 #ifndef PLATFORM_THREAD_WIN_H_
6 #define PLATFORM_THREAD_WIN_H_ 6 #define PLATFORM_THREAD_WIN_H_
7 7
8 #if !defined(PLATFORM_THREAD_H_) 8 #if !defined(PLATFORM_THREAD_H_)
9 #error Do not include thread_win.h directly; use thread.h instead. 9 #error Do not include thread_win.h directly; use thread.h instead.
10 #endif 10 #endif
11 11
12 #include "platform/globals.h" 12 #include "platform/globals.h"
13 13
14 namespace dart { 14 namespace dart {
15 15
16 typedef DWORD ThreadLocalKey;
17
16 class MutexData { 18 class MutexData {
17 private: 19 private:
18 MutexData() {} 20 MutexData() {}
19 ~MutexData() {} 21 ~MutexData() {}
20 22
21 HANDLE semaphore_; 23 HANDLE semaphore_;
22 24
23 friend class Mutex; 25 friend class Mutex;
24 26
25 DISALLOW_ALLOCATION(); 27 DISALLOW_ALLOCATION();
(...skipping 15 matching lines...) Expand all
41 43
42 friend class Monitor; 44 friend class Monitor;
43 45
44 DISALLOW_ALLOCATION(); 46 DISALLOW_ALLOCATION();
45 DISALLOW_COPY_AND_ASSIGN(MonitorData); 47 DISALLOW_COPY_AND_ASSIGN(MonitorData);
46 }; 48 };
47 49
48 } // namespace dart 50 } // namespace dart
49 51
50 #endif // PLATFORM_THREAD_WIN_H_ 52 #endif // PLATFORM_THREAD_WIN_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698