| OLD | NEW |
| 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 class ThreadData { | |
| 17 private: | |
| 18 ThreadData() {} | |
| 19 ~ThreadData() {} | |
| 20 | |
| 21 uintptr_t thread_handle_; | |
| 22 uint32_t tid_; | |
| 23 | |
| 24 friend class Thread; | |
| 25 | |
| 26 DISALLOW_ALLOCATION(); | |
| 27 DISALLOW_COPY_AND_ASSIGN(ThreadData); | |
| 28 }; | |
| 29 | |
| 30 | |
| 31 class MutexData { | 16 class MutexData { |
| 32 private: | 17 private: |
| 33 MutexData() {} | 18 MutexData() {} |
| 34 ~MutexData() {} | 19 ~MutexData() {} |
| 35 | 20 |
| 36 HANDLE semaphore_; | 21 HANDLE semaphore_; |
| 37 | 22 |
| 38 friend class Mutex; | 23 friend class Mutex; |
| 39 | 24 |
| 40 DISALLOW_ALLOCATION(); | 25 DISALLOW_ALLOCATION(); |
| (...skipping 15 matching lines...) Expand all Loading... |
| 56 | 41 |
| 57 friend class Monitor; | 42 friend class Monitor; |
| 58 | 43 |
| 59 DISALLOW_ALLOCATION(); | 44 DISALLOW_ALLOCATION(); |
| 60 DISALLOW_COPY_AND_ASSIGN(MonitorData); | 45 DISALLOW_COPY_AND_ASSIGN(MonitorData); |
| 61 }; | 46 }; |
| 62 | 47 |
| 63 } // namespace dart | 48 } // namespace dart |
| 64 | 49 |
| 65 #endif // PLATFORM_THREAD_WIN_H_ | 50 #endif // PLATFORM_THREAD_WIN_H_ |
| OLD | NEW |