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

Side by Side Diff: runtime/bin/thread_pool_macos.h

Issue 9114008: Introduce runtime/platform directory for code shared between vm (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Address comments. Created 8 years, 11 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 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
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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698