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

Side by Side Diff: mojo/edk/system/core.h

Issue 1426343002: EDK: Move mutex.*, cond_var.*, and thread_annotations.h to //mojo/edk/util. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: oops Created 5 years, 1 month 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 | « mojo/edk/system/connection_manager.h ('k') | mojo/edk/system/core.cc » ('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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef MOJO_EDK_SYSTEM_CORE_H_ 5 #ifndef MOJO_EDK_SYSTEM_CORE_H_
6 #define MOJO_EDK_SYSTEM_CORE_H_ 6 #define MOJO_EDK_SYSTEM_CORE_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include "base/callback.h" 10 #include "base/callback.h"
11 #include "mojo/edk/system/handle_table.h" 11 #include "mojo/edk/system/handle_table.h"
12 #include "mojo/edk/system/mapping_table.h" 12 #include "mojo/edk/system/mapping_table.h"
13 #include "mojo/edk/system/memory.h" 13 #include "mojo/edk/system/memory.h"
14 #include "mojo/edk/system/mutex.h" 14 #include "mojo/edk/util/mutex.h"
15 #include "mojo/edk/util/ref_ptr.h" 15 #include "mojo/edk/util/ref_ptr.h"
16 #include "mojo/edk/util/thread_annotations.h"
16 #include "mojo/public/c/system/buffer.h" 17 #include "mojo/public/c/system/buffer.h"
17 #include "mojo/public/c/system/data_pipe.h" 18 #include "mojo/public/c/system/data_pipe.h"
18 #include "mojo/public/c/system/message_pipe.h" 19 #include "mojo/public/c/system/message_pipe.h"
19 #include "mojo/public/c/system/types.h" 20 #include "mojo/public/c/system/types.h"
20 #include "mojo/public/cpp/system/macros.h" 21 #include "mojo/public/cpp/system/macros.h"
21 22
22 namespace mojo { 23 namespace mojo {
23 24
24 namespace embedder { 25 namespace embedder {
25 class PlatformSupport; 26 class PlatformSupport;
(...skipping 142 matching lines...) Expand 10 before | Expand all | Expand 10 after
168 const MojoHandleSignals* signals, 169 const MojoHandleSignals* signals,
169 uint32_t num_handles, 170 uint32_t num_handles,
170 MojoDeadline deadline, 171 MojoDeadline deadline,
171 uint32_t* result_index, 172 uint32_t* result_index,
172 HandleSignalsState* signals_states); 173 HandleSignalsState* signals_states);
173 174
174 embedder::PlatformSupport* const platform_support_; 175 embedder::PlatformSupport* const platform_support_;
175 176
176 // TODO(vtl): |handle_table_mutex_| should be a reader-writer lock (if only we 177 // TODO(vtl): |handle_table_mutex_| should be a reader-writer lock (if only we
177 // had them). 178 // had them).
178 Mutex handle_table_mutex_; 179 util::Mutex handle_table_mutex_;
179 HandleTable handle_table_ MOJO_GUARDED_BY(handle_table_mutex_); 180 HandleTable handle_table_ MOJO_GUARDED_BY(handle_table_mutex_);
180 181
181 Mutex mapping_table_mutex_; 182 util::Mutex mapping_table_mutex_;
182 MappingTable mapping_table_ MOJO_GUARDED_BY(mapping_table_mutex_); 183 MappingTable mapping_table_ MOJO_GUARDED_BY(mapping_table_mutex_);
183 184
184 MOJO_DISALLOW_COPY_AND_ASSIGN(Core); 185 MOJO_DISALLOW_COPY_AND_ASSIGN(Core);
185 }; 186 };
186 187
187 } // namespace system 188 } // namespace system
188 } // namespace mojo 189 } // namespace mojo
189 190
190 #endif // MOJO_EDK_SYSTEM_CORE_H_ 191 #endif // MOJO_EDK_SYSTEM_CORE_H_
OLDNEW
« no previous file with comments | « mojo/edk/system/connection_manager.h ('k') | mojo/edk/system/core.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698