| OLD | NEW |
| 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 <functional> | 10 #include <functional> |
| (...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 109 // API functions, referenced below. | 109 // API functions, referenced below. |
| 110 | 110 |
| 111 // This method corresponds to the API function defined in | 111 // This method corresponds to the API function defined in |
| 112 // "mojo/public/c/system/time.h": | 112 // "mojo/public/c/system/time.h": |
| 113 | 113 |
| 114 MojoTimeTicks GetTimeTicksNow(); | 114 MojoTimeTicks GetTimeTicksNow(); |
| 115 | 115 |
| 116 // This method corresponds to the API function defined in | 116 // This method corresponds to the API function defined in |
| 117 // "mojo/public/c/system/handle.h": | 117 // "mojo/public/c/system/handle.h": |
| 118 MojoResult Close(MojoHandle handle); | 118 MojoResult Close(MojoHandle handle); |
| 119 MojoResult GetRights(MojoHandle handle, UserPointer<MojoHandleRights> rights); |
| 119 | 120 |
| 120 // These methods correspond to the API functions defined in | 121 // These methods correspond to the API functions defined in |
| 121 // "mojo/public/c/system/wait.h": | 122 // "mojo/public/c/system/wait.h": |
| 122 MojoResult Wait(MojoHandle handle, | 123 MojoResult Wait(MojoHandle handle, |
| 123 MojoHandleSignals signals, | 124 MojoHandleSignals signals, |
| 124 MojoDeadline deadline, | 125 MojoDeadline deadline, |
| 125 UserPointer<MojoHandleSignalsState> signals_state); | 126 UserPointer<MojoHandleSignalsState> signals_state); |
| 126 MojoResult WaitMany(UserPointer<const MojoHandle> handles, | 127 MojoResult WaitMany(UserPointer<const MojoHandle> handles, |
| 127 UserPointer<const MojoHandleSignals> signals, | 128 UserPointer<const MojoHandleSignals> signals, |
| 128 uint32_t num_handles, | 129 uint32_t num_handles, |
| (...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 234 util::Mutex mapping_table_mutex_; | 235 util::Mutex mapping_table_mutex_; |
| 235 MappingTable mapping_table_ MOJO_GUARDED_BY(mapping_table_mutex_); | 236 MappingTable mapping_table_ MOJO_GUARDED_BY(mapping_table_mutex_); |
| 236 | 237 |
| 237 MOJO_DISALLOW_COPY_AND_ASSIGN(Core); | 238 MOJO_DISALLOW_COPY_AND_ASSIGN(Core); |
| 238 }; | 239 }; |
| 239 | 240 |
| 240 } // namespace system | 241 } // namespace system |
| 241 } // namespace mojo | 242 } // namespace mojo |
| 242 | 243 |
| 243 #endif // MOJO_EDK_SYSTEM_CORE_H_ | 244 #endif // MOJO_EDK_SYSTEM_CORE_H_ |
| OLD | NEW |