OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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_PROCESS_IDENTIFIER_H_ | 5 #ifndef MOJO_EDK_SYSTEM_PROCESS_IDENTIFIER_H_ |
6 #define MOJO_EDK_SYSTEM_PROCESS_IDENTIFIER_H_ | 6 #define MOJO_EDK_SYSTEM_PROCESS_IDENTIFIER_H_ |
7 | 7 |
8 #include <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 namespace mojo { | 10 namespace mojo { |
11 namespace system { | 11 namespace system { |
12 | 12 |
13 // Identifiers for processes (note that these are not OS process IDs): | 13 // Identifiers for processes (note that these are not OS process IDs): |
14 using ProcessIdentifier = uint64_t; | 14 using ProcessIdentifier = uint64_t; |
15 | 15 |
16 // Zero will never be a process identifier for any process. | 16 // Zero will never be a process identifier for any process. |
17 const ProcessIdentifier kInvalidProcessIdentifier = 0; | 17 const ProcessIdentifier kInvalidProcessIdentifier = 0; |
18 | 18 |
19 // The master process will always have this process identifier. | 19 // The master process will always have this process identifier. |
20 const ProcessIdentifier kMasterProcessIdentifier = 1; | 20 const ProcessIdentifier kMasterProcessIdentifier = 1; |
21 | 21 |
22 } // namespace system | 22 } // namespace system |
23 } // namespace mojo | 23 } // namespace mojo |
24 | 24 |
25 #endif // MOJO_EDK_SYSTEM_PROCESS_IDENTIFIER_H_ | 25 #endif // MOJO_EDK_SYSTEM_PROCESS_IDENTIFIER_H_ |
OLD | NEW |