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 BIN_THREAD_POOL_MACOS_H_ | 5 #ifndef BIN_THREAD_POOL_MACOS_H_ |
6 #define BIN_THREAD_POOL_MACOS_H_ | 6 #define BIN_THREAD_POOL_MACOS_H_ |
7 | 7 |
8 #include <pthread.h> | 8 #include <pthread.h> |
9 | 9 |
10 #include "vm/globals.h" | 10 #include "platform/globals.h" |
11 | 11 |
12 | 12 |
13 class TaskQueueData { | 13 class TaskQueueData { |
14 private: | 14 private: |
15 TaskQueueData() {} | 15 TaskQueueData() {} |
16 ~TaskQueueData() {} | 16 ~TaskQueueData() {} |
17 | 17 |
18 pthread_mutex_t* mutex() { return &mutex_; } | 18 pthread_mutex_t* mutex() { return &mutex_; } |
19 pthread_cond_t* cond() { return &cond_; } | 19 pthread_cond_t* cond() { return &cond_; } |
20 | 20 |
(...skipping 17 matching lines...) Expand all Loading... |
38 | 38 |
39 pthread_t* threads_; | 39 pthread_t* threads_; |
40 | 40 |
41 friend class ThreadPool; | 41 friend class ThreadPool; |
42 | 42 |
43 DISALLOW_ALLOCATION(); | 43 DISALLOW_ALLOCATION(); |
44 DISALLOW_COPY_AND_ASSIGN(ThreadPoolData); | 44 DISALLOW_COPY_AND_ASSIGN(ThreadPoolData); |
45 }; | 45 }; |
46 | 46 |
47 #endif // BIN_THREAD_POOL_MACOS_H_ | 47 #endif // BIN_THREAD_POOL_MACOS_H_ |
OLD | NEW |