summaryrefslogtreecommitdiffstats
path: root/ProcessList.h
diff options
context:
space:
mode:
authorDaniel Lange <DLange@git.local>2021-03-21 17:48:41 +0100
committerDaniel Lange <DLange@git.local>2021-03-21 17:48:41 +0100
commit6ea93fc6c0e4734ceb0cd85b77878a9033b1713c (patch)
tree9c118f9f1fbaf610eb8397ea2f348b8f1272e2fa /ProcessList.h
parent63019065dce4bc14b1f8bf437d7314b30a1c5970 (diff)
parente4e3f6c390452b4996ece4c92284410e58634052 (diff)
Merge branch 'openbsd' of cgzones/htop
Diffstat (limited to 'ProcessList.h')
-rw-r--r--ProcessList.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/ProcessList.h b/ProcessList.h
index bfbe0ab3..3d9b8ff2 100644
--- a/ProcessList.h
+++ b/ProcessList.h
@@ -115,4 +115,8 @@ Process* ProcessList_getProcess(ProcessList* this, pid_t pid, bool* preExisting,
void ProcessList_scan(ProcessList* this, bool pauseProcessUpdate);
+static inline Process* ProcessList_findProcess(ProcessList* this, pid_t pid) {
+ return (Process*) Hashtable_get(this->processTable, pid);
+}
+
#endif

© 2014-2024 Faster IT GmbH | imprint | privacy policy