diff options
author | Allan Sandfeld Jensen <allan.jensen@qt.io> | 2019-02-13 16:23:34 +0100 |
---|---|---|
committer | Allan Sandfeld Jensen <allan.jensen@qt.io> | 2019-02-14 10:37:21 +0000 |
commit | 38a9a29f4f9436cace7f0e7abf9c586057df8a4e (patch) | |
tree | c4e8c458dc595bc0ddb435708fa2229edfd00bd4 /chromium/base/linux_util.h | |
parent | e684a3455bcc29a6e3e66a004e352dea4e1141e7 (diff) | |
download | qtwebengine-chromium-38a9a29f4f9436cace7f0e7abf9c586057df8a4e.tar.gz |
BASELINE: Update Chromium to 73.0.3683.37
Change-Id: I08c9af2948b645f671e5d933aca1f7a90ea372f2
Reviewed-by: Michael BrĂ¼ning <michael.bruning@qt.io>
Diffstat (limited to 'chromium/base/linux_util.h')
-rw-r--r-- | chromium/base/linux_util.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/chromium/base/linux_util.h b/chromium/base/linux_util.h index 272e06b7d8c..568b4e86eac 100644 --- a/chromium/base/linux_util.h +++ b/chromium/base/linux_util.h @@ -9,6 +9,7 @@ #include <sys/types.h> #include <string> +#include <vector> #include "base/base_export.h" @@ -24,6 +25,10 @@ BASE_EXPORT std::string GetLinuxDistro(); // Set the Linux Distro string. BASE_EXPORT void SetLinuxDistro(const std::string& distro); +// For a given process |pid|, get a list of all its threads. On success, returns +// true and appends the list of threads to |tids|. Otherwise, returns false. +BASE_EXPORT bool GetThreadsForProcess(pid_t pid, std::vector<pid_t>* tids); + // For a given process |pid|, look through all its threads and find the first // thread with /proc/[pid]/task/[thread_id]/syscall whose first N bytes matches // |expected_data|, where N is the length of |expected_data|. |