summaryrefslogtreecommitdiff
path: root/chromium/base/linux_util.h
diff options
context:
space:
mode:
authorAllan Sandfeld Jensen <allan.jensen@qt.io>2017-01-04 14:17:57 +0100
committerAllan Sandfeld Jensen <allan.jensen@qt.io>2017-01-05 10:05:06 +0000
commit39d357e3248f80abea0159765ff39554affb40db (patch)
treeaba0e6bfb76de0244bba0f5fdbd64b830dd6e621 /chromium/base/linux_util.h
parent87778abf5a1f89266f37d1321b92a21851d8244d (diff)
downloadqtwebengine-chromium-39d357e3248f80abea0159765ff39554affb40db.tar.gz
BASELINE: Update Chromium to 55.0.2883.105
And updates ninja to 1.7.2 Change-Id: I20d43c737f82764d857ada9a55586901b18b9243 Reviewed-by: Michael BrĂ¼ning <michael.bruning@qt.io>
Diffstat (limited to 'chromium/base/linux_util.h')
-rw-r--r--chromium/base/linux_util.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/chromium/base/linux_util.h b/chromium/base/linux_util.h
index 83523df831d..272e06b7d8c 100644
--- a/chromium/base/linux_util.h
+++ b/chromium/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_