Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(904)

Unified Diff: base/linux_util.h

Issue 2334533002: base: Move renderer threads to the appropriate cpuset. (Closed)
Patch Set: revert to CHECK_NE Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | base/linux_util.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/linux_util.h
diff --git a/base/linux_util.h b/base/linux_util.h
index 83523df831dbff1a15ff5dd92e4057ca6fe6c57e..272e06b7d8cb583683fe64651697f621de2daddc 100644
--- a/base/linux_util.h
+++ b/base/linux_util.h
@@ -33,6 +33,12 @@ BASE_EXPORT pid_t FindThreadIDWithSyscall(pid_t pid,
const std::string& expected_data,
bool* syscall_supported);
+// For a given process |pid|, look through all its threads and find the first
+// thread with /proc/[pid]/task/[thread_id]/status where NSpid matches |ns_tid|.
+// Returns the thread id or -1 on error. If |ns_pid_supported| is
+// set to false the kernel does not support NSpid in procfs.
+BASE_EXPORT pid_t FindThreadID(pid_t pid, pid_t ns_tid, bool* ns_pid_supported);
+
} // namespace base
#endif // BASE_LINUX_UTIL_H_
« no previous file with comments | « no previous file | base/linux_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698