summaryrefslogtreecommitdiffstats
path: root/third_party/mojo/src/mojo/edk/system/process_identifier.h
blob: dd1157a795a40dc60bc81b5950106ecf11b54b58 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
// Copyright 2015 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#ifndef THIRD_PARTY_MOJO_SRC_MOJO_EDK_SYSTEM_PROCESS_IDENTIFIER_H_
#define THIRD_PARTY_MOJO_SRC_MOJO_EDK_SYSTEM_PROCESS_IDENTIFIER_H_

#include <stdint.h>

namespace mojo {
namespace system {

// Identifiers for processes (note that these are not OS process IDs):
using ProcessIdentifier = uint64_t;

// Zero will never be a process identifier for any process.
const ProcessIdentifier kInvalidProcessIdentifier = 0;

// The master process will always have this process identifier.
const ProcessIdentifier kMasterProcessIdentifier = 1;

}  // namespace system
}  // namespace mojo

#endif  // THIRD_PARTY_MOJO_SRC_MOJO_EDK_SYSTEM_PROCESS_IDENTIFIER_H_