OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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 // This file contains basic functions common to different Mojo system APIs. | 5 // This file contains basic functions common to different Mojo system APIs. |
6 // | 6 // |
7 // Note: This header should be compilable as C. | 7 // Note: This header should be compilable as C. |
8 | 8 |
9 #ifndef MOJO_PUBLIC_C_SYSTEM_WAIT_H_ | 9 #ifndef MOJO_PUBLIC_C_SYSTEM_WAIT_H_ |
10 #define MOJO_PUBLIC_C_SYSTEM_WAIT_H_ | 10 #define MOJO_PUBLIC_C_SYSTEM_WAIT_H_ |
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
95 // handles satisfying any of its signals. | 95 // handles satisfying any of its signals. |
96 // |MOJO_RESULT_FAILED_PRECONDITION| if it is or becomes impossible that SOME | 96 // |MOJO_RESULT_FAILED_PRECONDITION| if it is or becomes impossible that SOME |
97 // |handle[i]| will ever satisfy any of the signals in |signals[i]|. | 97 // |handle[i]| will ever satisfy any of the signals in |signals[i]|. |
98 // |MOJO_RESULT_BUSY| if some |handle[i]| is currently in use in some | 98 // |MOJO_RESULT_BUSY| if some |handle[i]| is currently in use in some |
99 // transaction (that, e.g., may result in it being invalidated, such as | 99 // transaction (that, e.g., may result in it being invalidated, such as |
100 // being sent in a message). | 100 // being sent in a message). |
101 MojoResult MojoWaitMany(const MojoHandle* MOJO_RESTRICT handles, // In. | 101 MojoResult MojoWaitMany(const MojoHandle* MOJO_RESTRICT handles, // In. |
102 const MojoHandleSignals* MOJO_RESTRICT signals, // In. | 102 const MojoHandleSignals* MOJO_RESTRICT signals, // In. |
103 uint32_t num_handles, // In. | 103 uint32_t num_handles, // In. |
104 MojoDeadline deadline, // In. | 104 MojoDeadline deadline, // In. |
105 uint32_t* MOJO_RESTRICT result_index, // Optional out | 105 uint32_t* MOJO_RESTRICT result_index, // Optional out. |
106 struct MojoHandleSignalsState* MOJO_RESTRICT | 106 struct MojoHandleSignalsState* MOJO_RESTRICT |
107 signals_states); // Optional out | 107 signals_states); // Optional out. |
108 | 108 |
109 MOJO_END_EXTERN_C | 109 MOJO_END_EXTERN_C |
110 | 110 |
111 #endif // MOJO_PUBLIC_C_SYSTEM_WAIT_H_ | 111 #endif // MOJO_PUBLIC_C_SYSTEM_WAIT_H_ |
OLD | NEW |