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

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

Issue 2154453002: Add runtime/bin/thread_fuchsia that binds to fuchsia's pthreads (Closed) Base URL: https://chromium.googlesource.com/external/github.com/dart-lang/sdk/@master
Patch Set: Created 4 years, 5 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
« no previous file with comments | « runtime/bin/builtin_impl_sources.gypi ('k') | runtime/bin/thread_fuchsia.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_H_ 5 #ifndef BIN_THREAD_H_
6 #define BIN_THREAD_H_ 6 #define BIN_THREAD_H_
7 7
8 #include "platform/globals.h" 8 #include "platform/globals.h"
9 9
10 namespace dart { 10 namespace dart {
11 namespace bin { 11 namespace bin {
12 class Thread; 12 class Thread;
13 class Mutex; 13 class Mutex;
14 class Monitor; 14 class Monitor;
15 } 15 }
16 } 16 }
17 17
18 // Declare the OS-specific types ahead of defining the generic classes. 18 // Declare the OS-specific types ahead of defining the generic classes.
19 #if defined(TARGET_OS_ANDROID) 19 #if defined(TARGET_OS_ANDROID)
20 #include "bin/thread_android.h" 20 #include "bin/thread_android.h"
21 #elif defined(TARGET_OS_FUCHSIA)
22 #include "bin/thread_fuchsia.h"
21 #elif defined(TARGET_OS_LINUX) 23 #elif defined(TARGET_OS_LINUX)
22 #include "bin/thread_linux.h" 24 #include "bin/thread_linux.h"
23 #elif defined(TARGET_OS_MACOS) 25 #elif defined(TARGET_OS_MACOS)
24 #include "bin/thread_macos.h" 26 #include "bin/thread_macos.h"
25 #elif defined(TARGET_OS_WINDOWS) 27 #elif defined(TARGET_OS_WINDOWS)
26 #include "bin/thread_win.h" 28 #include "bin/thread_win.h"
27 #else 29 #else
28 #error Unknown target os. 30 #error Unknown target os.
29 #endif 31 #endif
30 32
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after
106 MonitorData data_; // OS-specific data. 108 MonitorData data_; // OS-specific data.
107 109
108 DISALLOW_COPY_AND_ASSIGN(Monitor); 110 DISALLOW_COPY_AND_ASSIGN(Monitor);
109 }; 111 };
110 112
111 } // namespace bin 113 } // namespace bin
112 } // namespace dart 114 } // namespace dart
113 115
114 116
115 #endif // BIN_THREAD_H_ 117 #endif // BIN_THREAD_H_
OLDNEW
« no previous file with comments | « runtime/bin/builtin_impl_sources.gypi ('k') | runtime/bin/thread_fuchsia.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698