Commit cbe1e5c
src: abstract getpid() operation
There are a few places where we paper over the fact that getpid() is
called GetCurrentProcessId() on Windows. Let's move it into a function.
PR-URL: #17087
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Eugene Ostroukhov <eostroukhov@google.com>
Reviewed-By: Timothy Gu <timothygu99@gmail.com>1 parent 96bf44a commit cbe1e5cCopy full SHA for cbe1e5c
File tree
Expand file treeCollapse file tree
5 files changed
+27
-19
lines changedOpen diff view settings
Filter options
- src
Expand file treeCollapse file tree
5 files changed
+27
-19
lines changedOpen diff view settings
Collapse file
+2-7Lines changed: 2 additions & 7 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
2 | 2 | |
3 | 3 | |
4 | 4 | |
5 | | - |
6 | | - |
7 | | - |
8 | | - |
9 | | - |
10 | | - |
11 | 5 | |
12 | 6 | |
13 | 7 | |
| ||
130 | 124 | |
131 | 125 | |
132 | 126 | |
133 | | - |
| 127 | + |
| 128 | + |
134 | 129 | |
135 | 130 | |
136 | 131 | |
|
Collapse file
+4-3Lines changed: 4 additions & 3 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
13 | 13 | |
14 | 14 | |
15 | 15 | |
16 | | - |
17 | | - |
| 16 | + |
| 17 | + |
18 | 18 | |
19 | 19 | |
20 | 20 | |
| ||
108 | 108 | |
109 | 109 | |
110 | 110 | |
111 | | - |
| 111 | + |
| 112 | + |
112 | 113 | |
113 | 114 | |
114 | 115 | |
|
Collapse file
+4-9Lines changed: 4 additions & 9 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
100 | 100 | |
101 | 101 | |
102 | 102 | |
103 | | - |
104 | 103 | |
105 | 104 | |
106 | 105 | |
| ||
2040 | 2039 | |
2041 | 2040 | |
2042 | 2041 | |
2043 | | - |
2044 | | - |
2045 | | - |
2046 | | - |
2047 | | - |
2048 | | - |
2049 | | - |
| 2042 | + |
| 2043 | + |
2050 | 2044 | |
2051 | 2045 | |
2052 | 2046 | |
| ||
3522 | 3516 | |
3523 | 3517 | |
3524 | 3518 | |
3525 | | - |
| 3519 | + |
| 3520 | + |
3526 | 3521 | |
3527 | 3522 | |
3528 | 3523 | |
|
Collapse file
+1Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
143 | 143 | |
144 | 144 | |
145 | 145 | |
| 146 | + |
146 | 147 | |
147 | 148 | |
148 | 149 | |
|
Collapse file
+16Lines changed: 16 additions & 0 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
24 | 24 | |
25 | 25 | |
26 | 26 | |
| 27 | + |
| 28 | + |
| 29 | + |
| 30 | + |
| 31 | + |
| 32 | + |
| 33 | + |
| 34 | + |
27 | 35 | |
28 | 36 | |
29 | 37 | |
| ||
105 | 113 | |
106 | 114 | |
107 | 115 | |
| 116 | + |
| 117 | + |
| 118 | + |
| 119 | + |
| 120 | + |
| 121 | + |
| 122 | + |
| 123 | + |
108 | 124 | |
0 commit comments