Chromium Code Reviews

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

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.
Jump to:
View unified diff |
« no previous file with comments | « mojo/edk/system/core.h ('k') | mojo/edk/system/core_test_base.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 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 #include "mojo/edk/system/core.h" 5 #include "mojo/edk/system/core.h"
6 6
7 #include <memory> 7 #include <memory>
8 #include <utility> 8 #include <utility>
9 #include <vector> 9 #include <vector>
10 10
11 #include "base/logging.h" 11 #include "base/logging.h"
12 #include "mojo/edk/embedder/platform_shared_buffer.h" 12 #include "mojo/edk/embedder/platform_shared_buffer.h"
13 #include "mojo/edk/embedder/platform_support.h" 13 #include "mojo/edk/embedder/platform_support.h"
14 #include "mojo/edk/system/async_waiter.h" 14 #include "mojo/edk/system/async_waiter.h"
15 #include "mojo/edk/system/configuration.h" 15 #include "mojo/edk/system/configuration.h"
16 #include "mojo/edk/system/data_pipe.h" 16 #include "mojo/edk/system/data_pipe.h"
17 #include "mojo/edk/system/data_pipe_consumer_dispatcher.h" 17 #include "mojo/edk/system/data_pipe_consumer_dispatcher.h"
18 #include "mojo/edk/system/data_pipe_producer_dispatcher.h" 18 #include "mojo/edk/system/data_pipe_producer_dispatcher.h"
19 #include "mojo/edk/system/dispatcher.h" 19 #include "mojo/edk/system/dispatcher.h"
20 #include "mojo/edk/system/handle_signals_state.h" 20 #include "mojo/edk/system/handle_signals_state.h"
21 #include "mojo/edk/system/memory.h" 21 #include "mojo/edk/system/memory.h"
22 #include "mojo/edk/system/message_pipe.h" 22 #include "mojo/edk/system/message_pipe.h"
23 #include "mojo/edk/system/message_pipe_dispatcher.h" 23 #include "mojo/edk/system/message_pipe_dispatcher.h"
24 #include "mojo/edk/system/shared_buffer_dispatcher.h" 24 #include "mojo/edk/system/shared_buffer_dispatcher.h"
25 #include "mojo/edk/system/waiter.h" 25 #include "mojo/edk/system/waiter.h"
26 #include "mojo/public/c/system/macros.h" 26 #include "mojo/public/c/system/macros.h"
27 #include "mojo/public/cpp/system/macros.h" 27 #include "mojo/public/cpp/system/macros.h"
28 28
29 using mojo::util::MutexLocker;
29 using mojo::util::RefPtr; 30 using mojo::util::RefPtr;
30 31
31 namespace mojo { 32 namespace mojo {
32 namespace system { 33 namespace system {
33 34
34 // Implementation notes 35 // Implementation notes
35 // 36 //
36 // Mojo primitives are implemented by the singleton |Core| object. Most calls 37 // Mojo primitives are implemented by the singleton |Core| object. Most calls
37 // are for a "primary" handle (the first argument). |Core::GetDispatcher()| is 38 // are for a "primary" handle (the first argument). |Core::GetDispatcher()| is
38 // used to look up a |Dispatcher| object for a given handle. That object 39 // used to look up a |Dispatcher| object for a given handle. That object
(...skipping 562 matching lines...)
601 if (signals_states) { 602 if (signals_states) {
602 for (; i < num_handles; i++) 603 for (; i < num_handles; i++)
603 signals_states[i] = dispatchers[i]->GetHandleSignalsState(); 604 signals_states[i] = dispatchers[i]->GetHandleSignalsState();
604 } 605 }
605 606
606 return rv; 607 return rv;
607 } 608 }
608 609
609 } // namespace system 610 } // namespace system
610 } // namespace mojo 611 } // namespace mojo
OLDNEW
« no previous file with comments | « mojo/edk/system/core.h ('k') | mojo/edk/system/core_test_base.h » ('j') | no next file with comments »

Powered by Google App Engine