| OLD | NEW |
| 1 // Copyright (c) 2011, 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 VM_THREAD_WIN_H_ | 5 #ifndef PLATFORM_THREAD_WIN_H_ |
| 6 #define VM_THREAD_WIN_H_ | 6 #define PLATFORM_THREAD_WIN_H_ |
| 7 | 7 |
| 8 #include "vm/globals.h" | 8 #include "platform/globals.h" |
| 9 | 9 |
| 10 namespace dart { | 10 namespace dart { |
| 11 | 11 |
| 12 class ThreadData { | |
| 13 private: | |
| 14 ThreadData() {} | |
| 15 ~ThreadData() {} | |
| 16 | |
| 17 uintptr_t thread_handle_; | |
| 18 uint32_t tid_; | |
| 19 | |
| 20 friend class Thread; | |
| 21 | |
| 22 DISALLOW_ALLOCATION(); | |
| 23 DISALLOW_COPY_AND_ASSIGN(ThreadData); | |
| 24 }; | |
| 25 | |
| 26 | |
| 27 class MutexData { | 12 class MutexData { |
| 28 private: | 13 private: |
| 29 MutexData() {} | 14 MutexData() {} |
| 30 ~MutexData() {} | 15 ~MutexData() {} |
| 31 | 16 |
| 32 HANDLE semaphore_; | 17 HANDLE semaphore_; |
| 33 | 18 |
| 34 friend class Mutex; | 19 friend class Mutex; |
| 35 | 20 |
| 36 DISALLOW_ALLOCATION(); | 21 DISALLOW_ALLOCATION(); |
| (...skipping 14 matching lines...) Expand all Loading... |
| 51 CONDITION_VARIABLE cond_; | 36 CONDITION_VARIABLE cond_; |
| 52 | 37 |
| 53 friend class Monitor; | 38 friend class Monitor; |
| 54 | 39 |
| 55 DISALLOW_ALLOCATION(); | 40 DISALLOW_ALLOCATION(); |
| 56 DISALLOW_COPY_AND_ASSIGN(MonitorData); | 41 DISALLOW_COPY_AND_ASSIGN(MonitorData); |
| 57 }; | 42 }; |
| 58 | 43 |
| 59 } // namespace dart | 44 } // namespace dart |
| 60 | 45 |
| 61 #endif // VM_THREAD_WIN_H_ | 46 #endif // PLATFORM_THREAD_WIN_H_ |
| OLD | NEW |