File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
compiler-rt/lib/sanitizer_common Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -1086,7 +1086,7 @@ ThreadLister::Result ThreadLister::ListThreads(
1086
1086
}
1087
1087
}
1088
1088
1089
- const char *ThreadLister::LoadStatus (int tid) {
1089
+ const char *ThreadLister::LoadStatus (tid_t tid) {
1090
1090
auto cleanup = at_scope_exit ([&] {
1091
1091
// Resize back to capacity if it is downsized by `ReadFileToVector`.
1092
1092
buffer_.resize (buffer_.capacity ());
@@ -1097,7 +1097,7 @@ const char *ThreadLister::LoadStatus(int tid) {
1097
1097
return buffer_.data ();
1098
1098
}
1099
1099
1100
- bool ThreadLister::IsAlive (int tid) {
1100
+ bool ThreadLister::IsAlive (tid_t tid) {
1101
1101
// /proc/%d/task/%d/status uses same call to detect alive threads as
1102
1102
// proc_task_readdir. See task_state implementation in Linux.
1103
1103
static const char kPrefix [] = " \n PPid:" ;
Original file line number Diff line number Diff line change @@ -103,10 +103,10 @@ class ThreadLister {
103
103
Ok,
104
104
};
105
105
Result ListThreads (InternalMmapVector<tid_t > *threads);
106
- const char *LoadStatus (int tid);
106
+ const char *LoadStatus (tid_t tid);
107
107
108
108
private:
109
- bool IsAlive (int tid);
109
+ bool IsAlive (tid_t tid);
110
110
111
111
InternalScopedString task_path_;
112
112
InternalScopedString status_path_;
You can’t perform that action at this time.
0 commit comments